scsi: qla2xxx: don't break the bsg-lib abstractions
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Oct 2017 10:48:40 +0000 (12:48 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2017 03:46:21 +0000 (23:46 -0400)
commit05231a3bb7981b01f6933c0a847fcaac25622bfd
tree1a7f63dad448cd55d9bb68230569478e477f3c53
parent07f5d563c6e52068cbfcd97ed79f5bb1b1d33067
scsi: qla2xxx: don't break the bsg-lib abstractions

Always use bsg_job->reply instead of scsi_req(bsg_job->req)->sense), as
they always point to the same memory.

Never set scsi_req(bsg_job->req)->result and we'll set that value
through bsg_job_done.

[mkp: applied by hand, fixed whitespace]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Tested-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_bsg.c
drivers/scsi/qla2xxx/qla_isr.c
drivers/scsi/qla2xxx/qla_mr.c