common: make sure dm device is all settled before removing it
authorEryu Guan <eguan@redhat.com>
Tue, 5 Apr 2016 01:44:33 +0000 (11:44 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 01:44:33 +0000 (11:44 +1000)
commit3bc4c5895c977c44a9e9bc29296a2f1b679c2fc7
tree0385880544eacf7f40bbc0070e51a48c35fde1c3
parent450d833eba40a06d6b990d00152e6d4cfd50cce4
common: make sure dm device is all settled before removing it

_dmerror_cleanup()/_cleanup_flakey may fail to remove dm device due to
EBUSY and cause subsequent tests to fail.

Fix it by calling $UDEV_SETTLE_PROG before remove dm device to make sure
no one is using it.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/dmerror
common/dmflakey