summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-11-05 11:37:28 -0600
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 12:01:33 -0600
commit3f9daedfcb197d784c6e7ecd731e3aa9859bc951 (patch)
tree325fcbc8499c5a627450fdf7a6230157d2ae9625 /drivers/scsi
parent2bc1c59dbdefdb6f9767e06efb86bbdb2923a8be (diff)
downloadlinux-3f9daedfcb197d784c6e7ecd731e3aa9859bc951.tar.bz2
[SCSI] add scsi target reset support to scsi ioctl
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_ioctl.c b/drivers/scsi/scsi_ioctl.c
index b98f763931c5..d9564fb04f62 100644
--- a/drivers/scsi/scsi_ioctl.c
+++ b/drivers/scsi/scsi_ioctl.c
@@ -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;