Skip to contentSkip to conversation

scsi: add scsi target reset support to scsi ioctl

PATCH New [email protected] 1 participant 1 message Nov 5, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: add scsi target reset support to scsi ioctl

From: Mike Christie <[email protected]>

The scsi ioctl code path was missing scsi target reset support. This patch just adds it.

---
 drivers/scsi/scsi_ioctl.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/scsi/scsi_ioctl.c +3 -0
index b98f763..d9564fb 100644
@@ -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;
Signature · 1 line
1.6.0.6