scsi_dh: don't allow to detach device handlers at runtime
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Aug 2015 12:17:01 +0000 (14:17 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 28 Aug 2015 20:14:58 +0000 (13:14 -0700)
commitd44227749500d8b88a1c079bc04f69187eaf8747
tree464385f87b69a5536904db5d096362d0d30e5aca
parente959ed9a44c5239863ca6db42cb37130bee3c7a3
scsi_dh: don't allow to detach device handlers at runtime

The I/O submission and completion paths call into the device handler
without any synchronization agains detachment.  So disallow detaching
device handlers at runtime.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_dh.c