]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
krbd: fix rbd map hang due to udev return subsystem unordered 28019/head
authorZhi Zhang <willzzhang@tencent.com>
Thu, 11 Apr 2019 05:09:01 +0000 (13:09 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 8 May 2019 07:07:03 +0000 (03:07 -0400)
commit1c89bc0947e7c4aa881c6bc0c2225bb7f9c5e176
tree71947e159c12c726eeb5fcf9ebc0d6c7c354eb41
parente71c2e6f7403048b15bf4dd31f923236890a48ea
krbd: fix rbd map hang due to udev return subsystem unordered

The order of subsystem returned by udev_device_get_subsystem
might not be same order as adding subsystem by
udev_monitor_filter_add_match_subsystem_devtype. So if block
event is returned first and rbd event is returned next, then
further poll will get nothing back until timed-out.

Fixes: http://tracker.ceph.com/issues/39089
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit 42dd1eae630f31a628051049e4007175561f1939)
src/krbd.cc