]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] sg: Add target reset support
authorBrian King <brking@linux.vnet.ibm.com>
Tue, 1 Jul 2008 18:03:19 +0000 (13:03 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:32 +0000 (08:22 -0500)
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>
drivers/scsi/sg.c
include/scsi/sg.h

index ea0edd1b2e76692ce520a56bbcc5d62666f75fff..2010fa039cfee678a32e4dd0c387dc98abc501b7 100644 (file)
@@ -1026,6 +1026,9 @@ sg_ioctl(struct inode *inode, struct file *filp,
                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;
index 519c49a0fc11decf664e6d676f1dab8580169236..934ae389671d064e6e891649b6e2bc1f88245af5 100644 (file)
@@ -206,6 +206,7 @@ typedef struct sg_req_info { /* used by SG_GET_REQUEST_TABLE ioctl() */
 #define                SG_SCSI_RESET_DEVICE    1
 #define                SG_SCSI_RESET_BUS       2
 #define                SG_SCSI_RESET_HOST      3
+#define                SG_SCSI_RESET_TARGET    4
 
 /* synchronous SCSI command ioctl, (only in version 3 interface) */
 #define SG_IO 0x2285   /* similar effect as write() followed by read() */