Christoph Hellwig 906d15fbd2 scsi: split scsi_nonblockable_ioctl
The calling conventions for this function are bad as it could return
-ENODEV both for a device not currently online and a not recognized ioctl.

Add a new scsi_ioctl_block_when_processing_errors function that wraps
scsi_block_when_processing_errors with the a special case for the
SG_SCSI_RESET ioctl command, and handle the SG_SCSI_RESET case itself
in scsi_ioctl.  All callers of scsi_ioctl now must call the above helper
to check for the EH state, so that the ioctl handler itself doesn't
have to.

Reported-by: Robert Elliott <Elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
2014-11-12 11:16:11 +01:00
..
2014-09-15 16:01:58 -07:00
2014-08-26 09:35:54 +02:00
2014-11-10 15:25:41 +01:00
2014-10-07 21:29:18 -04:00
2014-10-07 21:29:18 -04:00
2014-11-10 15:25:29 +01:00
2014-10-07 21:29:18 -04:00
2014-07-25 17:16:55 -04:00
2014-08-26 09:35:54 +02:00
2014-07-17 22:07:37 +02:00
2014-11-12 11:16:05 +01:00
2014-08-08 15:57:29 -07:00
2014-08-08 15:57:29 -07:00
2014-07-25 07:43:43 -04:00
2014-06-09 18:54:06 -07:00
2014-11-12 11:16:11 +01:00
2014-07-17 22:07:38 +02:00
2014-09-15 16:01:58 -07:00
2014-07-17 22:07:37 +02:00
2014-09-16 09:09:38 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-09-26 10:07:27 +02:00
2014-10-14 02:18:24 +02:00
2014-09-30 09:29:55 +02:00
2014-09-30 09:29:55 +02:00
2014-08-08 15:57:29 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:35 +02:00
2014-05-28 18:14:16 +02:00
2014-10-07 21:29:18 -04:00
2014-11-12 11:16:11 +01:00
2014-07-25 17:16:55 -04:00
2014-07-25 17:16:55 -04:00
2014-04-10 15:30:35 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-11-12 11:16:11 +01:00
2014-11-12 11:15:57 +01:00
2014-11-12 11:16:11 +01:00
2014-07-17 22:07:39 +02:00
2014-11-12 11:16:11 +01:00
2014-11-12 11:15:57 +01:00
2014-11-12 11:16:11 +01:00
2014-05-28 12:05:37 +02:00
2014-05-28 12:05:37 +02:00
2014-07-17 22:07:37 +02:00
2014-10-15 10:25:14 +10:30
2014-07-17 22:07:37 +02:00