]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix potential race when notify quiesce fails
authorMykola Golub <mgolub@suse.com>
Tue, 9 Jun 2020 15:25:03 +0000 (16:25 +0100)
committerMykola Golub <mgolub@suse.com>
Tue, 9 Jun 2020 15:25:03 +0000 (16:25 +0100)
commit60e084a927dfc15bb65af03005fa4e35e08dc55d
tree89bb5a62b75615bd65e4f772306ade5870d611d1
parente16066a23fdfb4ec84ec7e3417401764075051ff
librbd: fix potential race when notify quiesce fails

In SnapshotCreateRequest, handle_notify_quiesce could return
earlier than notify_quiesce. As the result m_request_id was not
properly set at the moment when notify_unquiesce was called.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/api/Group.cc
src/librbd/operation/SnapshotCreateRequest.cc
src/test/librbd/mock/MockImageWatcher.h
src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc