[SCSI] add scsi target reset support to scsi ioctl
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 5 Nov 2009 17:37:28 +0000 (11:37 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:33 +0000 (12:01 -0600)
The scsi ioctl code path was missing scsi target reset
support. This patch just adds it.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_ioctl.c

index b98f763931c5fadb9c0b438c7099786b6ac8d41b..d9564fb04f62cd5c390aed97547adf4f49b6fc24 100644 (file)
@@ -308,6 +308,9 @@ int scsi_nonblockable_ioctl(struct scsi_device *sdev, int cmd,
                case SG_SCSI_RESET_DEVICE:
                        val = SCSI_TRY_RESET_DEVICE;
                        break;
+               case SG_SCSI_RESET_TARGET:
+                       val = SCSI_TRY_RESET_TARGET;
+                       break;
                case SG_SCSI_RESET_BUS:
                        val = SCSI_TRY_RESET_BUS;
                        break;