]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: shutdown should wait for pending IOs to complete 29858/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 23 Aug 2019 18:52:28 +0000 (14:52 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 23 Aug 2019 19:05:39 +0000 (15:05 -0400)
commit1c40cfc82e0883b9a03ebee39bb020e2bfb49972
tree2904b8b36a78de04672d1590890468a5e29be06f
parentd1322dba2e74de21388ad524c942288683712599
rbd-nbd: shutdown should wait for pending IOs to complete

Previously it was incorrectly waiting for finished IOs to complete.
The finished IO would have already been cleared by the writer thread
at this point. Any remaining pending or finished IOs implies a
failure / shutdown of the NBD device.

Fixes: https://tracker.ceph.com/issues/41409?
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_nbd/rbd-nbd.cc