aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2008-07-01 14:03:19 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:32 -0400
commit39120e11705782c77d3a47d7d2927676fd8e3aaa (patch)
treeb9f897de2a45928146d362ee01a583c1c3f2fa8a /drivers/scsi
parentf11f594edba7f689af9792a5673ed59d660ad371 (diff)
[SCSI] sg: Add target reset support
Adds support for target reset to SG_SCSI_RESET. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Acked-by: Douglas Gilbert <dougg@torque.net> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index ea0edd1b2e76..2010fa039cfe 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1026,6 +1026,9 @@ sg_ioctl(struct inode *inode, struct file *filp,
1026 case SG_SCSI_RESET_DEVICE: 1026 case SG_SCSI_RESET_DEVICE:
1027 val = SCSI_TRY_RESET_DEVICE; 1027 val = SCSI_TRY_RESET_DEVICE;
1028 break; 1028 break;
1029 case SG_SCSI_RESET_TARGET:
1030 val = SCSI_TRY_RESET_TARGET;
1031 break;
1029 case SG_SCSI_RESET_BUS: 1032 case SG_SCSI_RESET_BUS:
1030 val = SCSI_TRY_RESET_BUS; 1033 val = SCSI_TRY_RESET_BUS;
1031 break; 1034 break;