]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 5 Jun 2019 04:56:53 +0000 (23:56 -0500)
commitb4ba17659311c0854d2bfb11e27b052365e382f4
tree75c0f6798bd1740c2b0d4d2fb00e1aeeb41c7624
parent129a348edafdd7014edc1b2233d055c2cb57d5a5
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>
src/tools/rbd_nbd/rbd-nbd.cc