]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
libfc: fix REC handling
authorVasu Dev <vasu.dev@intel.com>
Tue, 9 Oct 2012 01:43:24 +0000 (01:43 +0000)
committerRobert Love <robert.w.love@intel.com>
Tue, 4 Dec 2012 18:16:38 +0000 (10:16 -0800)
commit5b97fabdc815b4b60bac2328b58c5c7274debf58
tree70f31d476070acca39e1e3e17b7fb6341bd931c8
parentb69f0859dc8e633c5d8c06845811588fe17e68b3
libfc: fix REC handling

Currently fc_fcp_timeout doesn't check FC_RP_FLAGS_REC_SUPPORTED
flag first, this prevents REC request ever going out at all
to the target having REC support. So this patches fixes the
fc_fcp_timeout by checking FC_RP_FLAGS_REC_SUPPORTED flag first.

The changed order won't cause any issue during clearing
FC_RP_FLAGS_REC_SUPPORTED on failed IO with target not supporting
FC_RP_FLAGS_REC_SUPPORTED, since retry on failed IO would succeed.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
drivers/scsi/libfc/fc_fcp.c