dm: call PR reserve/unreserve on each underlying device
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2016 12:23:51 +0000 (21:23 +0900)
committerMike Snitzer <snitzer@redhat.com>
Mon, 18 Jul 2016 19:37:35 +0000 (15:37 -0400)
commit9c72bad1f31af96d9012025639552cd5732bb0a5
tree5cff734fe4beefb4256e1070aeb9ba27bf9fc5e0
parent01f90dd9e01c766371069621810c58c2c7a62021
dm: call PR reserve/unreserve on each underlying device

So far we tried to rely on the SCSI 'all target ports' bit to register
all path, but for many setups this didn't work properly as the different
paths are seen as separate initiators to the target instead of multiple
ports of the same initiator.  Because of that we'll stop setting the
'all target ports' bit in SCSI, and let device mapper handle iterating
over the device for each path and register them manually.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c