scsi: scsi_ioctl: Call scsi_cmd_ioctl() from scsi_ioctl()
authorChristoph Hellwig <hch@lst.de>
Sat, 24 Jul 2021 07:20:20 +0000 (09:20 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Jul 2021 02:24:25 +0000 (22:24 -0400)
commit2e27f576abc6f056e63ef207b9911b1a04d07020
treeccec24aa14279c5a8140c42feebaa96633b03364
parent4f07bfc56157ebc689ef54879e90c48a47294083
scsi: scsi_ioctl: Call scsi_cmd_ioctl() from scsi_ioctl()

Ensure SCSI ULD only has to call a single ioctl helper.  This also adds a
bunch of missing ioctls to the ch driver, and removes the need for a
duplicate implementation of SCSI_IOCTL_SEND_COMMAND command.

Link: https://lore.kernel.org/r/20210724072033.1284840-12-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ch.c
drivers/scsi/scsi_ioctl.c
drivers/scsi/sd.c
drivers/scsi/sg.c
drivers/scsi/sr.c
drivers/scsi/st.c
include/scsi/scsi_ioctl.h