diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-05-15 13:18:22 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-12 14:20:06 -0500 |
commit | dc577d554a274b79a6ad05e9e1ac20c320200599 (patch) | |
tree | be017b749065c419aee2bddfb4147eadccdf88fe /drivers/s390/scsi/zfcp_fsf.c | |
parent | 9d544f2b9bd4a0f7ba2784cc47e3591667a7b8d4 (diff) | |
download | linux-dc577d554a274b79a6ad05e9e1ac20c320200599.tar.gz linux-dc577d554a274b79a6ad05e9e1ac20c320200599.tar.bz2 linux-dc577d554a274b79a6ad05e9e1ac20c320200599.zip |
[SCSI] zfcp: Update FC pass-through support
Don't access the block layer request, get the payload length instead
from the FC job. Simplify access to the zfcp_port, only the d_id is
required, if the port is no longer accessed later. This is possible
when the els_handler does not access the port pointer from the ELS
request.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index e6dae3744e79..c57658f3d34f 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c @@ -1146,7 +1146,8 @@ static void zfcp_fsf_send_els_handler(struct zfcp_fsf_req *req) case FSF_RESPONSE_SIZE_TOO_LARGE: break; case FSF_ACCESS_DENIED: - zfcp_fsf_access_denied_port(req, port); + if (port) + zfcp_fsf_access_denied_port(req, port); break; case FSF_SBAL_MISMATCH: /* should never occure, avoided in zfcp_fsf_send_els */ |