]> git.baikalelectronics.ru Git - kernel.git/commit
dm-mpath, scsi_dh: don't let dm detach device handlers
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Aug 2015 12:16:54 +0000 (14:16 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 28 Aug 2015 20:14:54 +0000 (13:14 -0700)
commit60f5993eb604404d2c3c88a32486ccbbd3e7842e
tree3a2bbd51706e6ec0a279cbc0011d996de7320aa7
parent4adc87d539bdb263162f0b68e44ad7b372b0aba1
dm-mpath, scsi_dh: don't let dm detach device handlers

While allowing dm-mpath to attach device handlers is a functionality we need
for backwards compatibility reason there is no reason to reference count
them and detach them if dm-mpath stops using the device for some reason.

If the device handler works for the given device it can just stay attached,
and we can take the retain_hw_handler codepath.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Hannes Reinecke <hare@Suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/md/dm-mpath.c
drivers/scsi/device_handler/scsi_dh.c
include/scsi/scsi_device.h
include/scsi/scsi_dh.h