Replies: 3 comments 7 replies
|
@huang-jl Have you confirmed that nothing has the device open before you issue the remove ioctl? |
0 replies
|
Additional Information
|
0 replies
|
@mulkieran Yes, there is nothing has the device open. If there are other processes open the device, I should see them from |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I find that I encounter EBUSY of device remove of thin device, the error message seems like:
I find that the device mapper will try about 5 times when ioctl meet EBUSY errors, but it still fails in my scenario. When it fails, I monitor which process preventing it from delete the thin device, via the
lsoftool. I find that a process named(udev-worker)holds reference to the thin device.I am not familiar with udev (systemd-udevd), I guess the
DM_DEV_REMOVE_CMDioctl triggers the udev to handle events like "remove" events? But I am not sure that will udev receive and process any event before the ioctl has actually succeed (theDM_DEV_REMOVE_CMDfailed with EBUSY and the thin device has not been deleted).Does anyone have ideas on solve this problem?
All reactions