]> git.hungrycats.org Git - linux/commit
scsi: Add reset ioctl capability to ULDs
authorJames Bottomley <jejb@mulgrave.(none)>
Sun, 19 Sep 2004 08:56:12 +0000 (04:56 -0400)
committerJames Bottomley <jejb@gsyprf11.external.hp.com>
Sun, 19 Sep 2004 08:56:12 +0000 (04:56 -0400)
commit0ed32242445728a4996bed0b873c81d9a859bb5c
treeac3c2f48d13a4eec643dbc65e7e1c5b3a615a902
parent89f88233741ca61ec7fecff69074c054bb92a9f4
scsi: Add reset ioctl capability to ULDs

Currently, the only way to issue a SCSI reset of any
type is to use the sg device.  By adding extra ioctls
to scsi_ioctl.c we enable this for all ULDs.

The slight complication is that scsi_ioctl() is usually
only called when the device has been checked not to be
undergoing eh recovery.  Resets may be issued in
this scenario if the user opens the device O_NONBLOCK.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_ioctl.c
drivers/scsi/sd.c
drivers/scsi/sr_ioctl.c
drivers/scsi/st.c
include/scsi/scsi_ioctl.h