]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: fix potential race when waiting unqiesce
authorMykola Golub <mgolub@suse.com>
Mon, 7 Sep 2020 13:05:21 +0000 (14:05 +0100)
committerMykola Golub <mgolub@suse.com>
Fri, 11 Sep 2020 13:51:51 +0000 (14:51 +0100)
commit41727ab01ce639a80930cc59c9597704871a2a55
treead639a8f59af9dee8fcc8b87ebf461eae1c6fcf9
parent251ccb8d958b44089b31c2108501c09eb8bee8ff
rbd-nbd: fix potential race when waiting unqiesce

There was a window between issuing quiesce_complete and checking
the quiesce variable unset by the unqiesce callback, when the lock
was not holding. If during that window the unquiesce following the
next quiesce callbacks were called we would miss unquiesce event.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd_nbd/rbd-nbd.cc