]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd nbd: Add cond to signal nbd disconnection
authorMike Christie <mchristi@redhat.com>
Tue, 30 Apr 2019 22:24:07 +0000 (17:24 -0500)
committerMike Christie <mchristi@redhat.com>
Tue, 24 Sep 2019 20:41:21 +0000 (15:41 -0500)
commitbb7b11a0e473c9ef0b8191051c7b2b856725a7ab
tree5e3db78fbc76fc43bf75eaf0bd41395309b47508
parentea8519a80b872fb5d0d465782de015b44d2f5875
rbd nbd: Add cond to signal nbd disconnection

With the ioctl interface we know when a disconnect has been executed
because the NBD_DO_IO ioctl will return. The netlink interface returns
after the nl connect cmd call has completed, so this patch adds a cond
that signals when a nl disconnect/NBD_DISCONNECT has been executed and
the server thread has handled the resulting NBD_CMD_DISC.

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit b4ba17659311c0854d2bfb11e27b052365e382f4)
src/tools/rbd_nbd/rbd-nbd.cc