]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83aef24a1d6377380f4939a831feec2f6da2b260
tree464b392c4b4281f86768fcdb2f159d2167820f8a
parent010a9f0c84093c2726f162b347c34f85c2ce27bf
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