[SCSI] lpfc : scsi command accessor fix for 8.2.2
authorJames Smart <James.Smart@Emulex.Com>
Sun, 5 Aug 2007 10:08:38 +0000 (06:08 -0400)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 3 Aug 2007 16:30:09 +0000 (11:30 -0500)
It was pointed out by Boaz Harrosh <bharrosh@panasas.com> that our
8.2.2 lpfc patches revert a change to using SCSI command accessor
functions.

This patch, to be applied on top of the 8.2.2. patches, updates the
driver for the accessor functions.

Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/lpfc/lpfc_scsi.c

index 94458d7..17d7dc0 100644 (file)
@@ -499,7 +499,7 @@ lpfc_handle_fcp_err(struct lpfc_vport *vport, struct lpfc_scsi_buf *lpfc_cmd,
                                         "0717 FCP command x%x residual "
                                         "underrun converted to error "
                                         "Data: x%x x%x x%x\n",
-                                        cmnd->cmnd[0], cmnd->request_bufflen,
+                                        cmnd->cmnd[0], scsi_bufflen(cmnd),
                                         scsi_get_resid(cmnd), cmnd->underflow);
                        host_status = DID_ERROR;
                }