]> bbs.cooldavid.org Git - net-next-2.6.git/commit - block/scsi_ioctl.c
[SCSI] unify SCSI_IOCTL_SEND_COMMAND implementations
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Mar 2006 16:52:04 +0000 (17:52 +0100)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 13 Apr 2006 15:13:15 +0000 (10:13 -0500)
commit21b2f0c803adaf00fce1b606c50b49ae8b106773
tree1acc834df309041ed0c5681f4bd222fd3e113900
parent765fcab23d0a79ed7aab8da79766f5873d936f1b
[SCSI] unify SCSI_IOCTL_SEND_COMMAND implementations

We currently have two implementations of this obsolete ioctl, one in
the block layer and one in the scsi code.  Both of them have drawbacks.

This patch kills the scsi layer version after updating the block version
with the missing bits:

 - argument checking
 - use scatterlist I/O
 - set number of retries based on the submitted command

This is the last user of non-S/G I/O except for the gdth driver, so
getting this in ASAP and through the scsi tree would be nie to kill
the non-S/G I/O path.  Jens, what do you think about adding a check
for non-S/G I/O in the midlayer?

Thanks to  Or Gerlitz for testing this patch.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
block/scsi_ioctl.c
drivers/scsi/scsi_ioctl.c
drivers/scsi/sg.c
include/linux/blkdev.h
include/scsi/scsi_ioctl.h