scsi: refactor scsi_reset_provider handling
authorChristoph Hellwig <hch@lst.de>
Sat, 11 Oct 2014 10:06:47 +0000 (12:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:10 +0000 (11:16 +0100)
commit176aa9d6ee2db582e7e856dbe1983004a82869b4
tree5c1e97cbdc98dd9162ef6f81af19eca932f8117e
parent1ee8e889d946b3b1c2cc8b99e29eac47d1581dfd
scsi: refactor scsi_reset_provider handling

Pull the common code from the two callers into the function,
and rename it to scsi_ioctl_reset.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/scsi_error.c
drivers/scsi/scsi_ioctl.c
drivers/scsi/sg.c
include/scsi/scsi_eh.h