summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic_scsi.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-06-03 00:22:00 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-13 04:01:37 +0300
commit08f784364fef627650e471c7ae342f1da1c57bbf (patch)
tree60bb90495d2b40869bd8c71494b7bda5034764a2 /drivers/scsi/snic/snic_scsi.c
parentbe4c186c80113f95a5946594687a8e70f876e857 (diff)
downloadlinux-08f784364fef627650e471c7ae342f1da1c57bbf.tar.xz
scsi: Make scsi_mq_prep_fn() call scsi_init_command()
This patch reduces code duplication. There are two functional changes in this patch: - It causes scsi_mq_prep_fn() to clear driver-private command data, just like the already upstream commit 1bad6c4a57ef ("scsi: zero per-cmd private driver data for each MQ I/O"). - The initialization of .prot_sdb is moved from scsi_mq_prep_fn() into scsi_init_request(). [mkp: applied by hand] Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/snic/snic_scsi.c')
0 files changed, 0 insertions, 0 deletions