]> sourceware.org Git - lvm2.git/commit
devicemapper: retry remove even for subLVs
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 8 Nov 2018 11:12:58 +0000 (12:12 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 8 Nov 2018 11:20:57 +0000 (12:20 +0100)
commit6cee8f1b063dcf5d809e14de38ba489ce5b8f562
treed6501ff7e40c293896fcd9d16349b5b7e9efe119
parentc1703845c3d82e381c545b8ad8bde68bafc2fbcf
devicemapper: retry remove even for subLVs

With older systems and udevs we don't have control over scanning of lvm2
internal devices - so far we set retry-removal only for top-level LVs,
but in occasional cases udev can be 'fast enough' to open device for
scanning and prevent removal of such device from DM table.

So to combat this case - try to pass 'retry' flag also for removal of
internal device so see how many races can go away with this simple
patch.

Note: patch is applied only to internal version of libdm so the external
API remains working in the old way for now.
device_mapper/libdm-deptree.c
This page took 0.037639 seconds and 5 git commands to generate.