]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: ensure that thread pool lock is held when processing throttled IOs 37116/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 11 Sep 2020 19:20:45 +0000 (15:20 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 11 Sep 2020 19:20:45 +0000 (15:20 -0400)
commit2d86e0935aa6f0c392df428676d9ab0a338fccae
tree29fb3f0e77432b53d38ee92af9ae4935df14c4fa
parent1568b0e16efe3dc1383c249cbffe43620e2aed28
librbd: ensure that thread pool lock is held when processing throttled IOs

There previously was a potential race for throttled IOs to complete prior
to the main worker thread finishing the processing of the blocked IO.

Fixes: https://tracker.ceph.com/issues/47371
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/ImageRequestWQ.cc
src/test/librbd/io/test_mock_ImageRequestWQ.cc