]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] zfcp: Report FC BSG errors in correct field
authorSwen Schillig <swen@vnet.ibm.com>
Tue, 26 Jan 2010 16:49:19 +0000 (17:49 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 8 Feb 2010 19:40:17 +0000 (13:40 -0600)
commit2032796f25889371b3bc094f7e07938cb2615ba2
treecf61e7ea19d4b34bfccf68b983b935e497a93676
parentff0725ee5e2c78b503e026d8915e7a5262f2f3ca
[SCSI] zfcp: Report FC BSG errors in correct field

The status FC_CTELS_STATUS_REJECT for all FC BSG errors is not
appropriate. Instead, report -EIO in the result field if there was a
problem in zfcp with the FC BSG request. If the request is good from
our point of view, report result 0, status FC_CTELS_STATUS_OK and let
userspace read the Accept or Reject from the payload (as documented in
scsi_bsg_fc.h).

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/s390/scsi/zfcp_fc.c