scsi: mpt3sas: always use first reserved smid for ioctl passthrough
authorHannes Reinecke <hare@suse.de>
Thu, 4 Jan 2018 12:57:07 +0000 (04:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:02 +0000 (23:25 -0500)
commitb0cd285eb57cd3cb18d882565c22d39bccffe7f0
tree464b392c4b4281f86768fcdb2f159d2167820f8a
parent9961c9bbf2b43acaaf030a0fbabc9954d937ad8c
scsi: mpt3sas: always use first reserved smid for ioctl passthrough

ioctl passthrough commands require a SCSIIO smid, but cannot easily
integrate with the block layer. But the driver already has reserved some
SCSIIO smids and we're only ever allowing one ioctl command at a time we
can use the first reserved smid for ioctl commands.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_ctl.c