]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit1bab0de0274fbe8c8ac92179e6705584c55ed169
tree3a2bbd51706e6ec0a279cbc0011d996de7320aa7
parent36dd5acd196574d41de3e81d8264df475bbb7123
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