[132/197] SCSI: add scsi target reset support to scsi ioctl

Previous thread: [169/197] modules: fix incorrect percpu usage by Greg KH on Thursday, April 22, 2010 - 12:10 pm. (2 messages)

Next thread: [168/197] Input: wacom - switch mode upon system resume by Greg KH on Thursday, April 22, 2010 - 12:10 pm. (1 message)
From: Greg KH
Date: Thursday, April 22, 2010 - 12:09 pm

2.6.32-stable review patch.  If anyone has any objections, please let us know.

------------------

From: Mike Christie <michaelc@cs.wisc.edu>

commit 3f9daedfcb197d784c6e7ecd731e3aa9859bc951 upstream.

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>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/scsi/scsi_ioctl.c |    3 +++
 1 file changed, 3 insertions(+)

--- a/drivers/scsi/scsi_ioctl.c
+++ b/drivers/scsi/scsi_ioctl.c
@@ -308,6 +308,9 @@ int scsi_nonblockable_ioctl(struct scsi_
 		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;


--

Previous thread: [169/197] modules: fix incorrect percpu usage by Greg KH on Thursday, April 22, 2010 - 12:10 pm. (2 messages)

Next thread: [168/197] Input: wacom - switch mode upon system resume by Greg KH on Thursday, April 22, 2010 - 12:10 pm. (1 message)