]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-mgr: hold lock while accessing the request list and submitting request 25113/head
authorJerry Lee <leisurelysw24@gmail.com>
Mon, 12 Nov 2018 06:27:53 +0000 (14:27 +0800)
committerJerry Lee <leisurelysw24@gmail.com>
Thu, 15 Nov 2018 08:59:06 +0000 (16:59 +0800)
commit6d7f6209b76f2d38ff832e556937510228d76bda
tree64170b94d6bb7e90879c04e0dc3d2ad80670270b
parent26b8bde039068b4d804031a34706f7b3e7d23807
ceph-mgr: hold lock while accessing the request list and submitting request

The request creation can fire up the notify event early and it can cause
a race condition where the actual request was not yet added to the
self.requests list which makes the submit_request() function waits
forever without accepting new requests.

https://marc.info/?l=ceph-devel&m=154104291714160&w=2

Fixes: https://tracker.ceph.com/issues/36764
Signed-off-by: Jerry Lee <leisurelysw24@gmail.com>
(cherry picked from commit b09aefc2d6af3de8cc3df30258dfdc639c919a9f)

Conflicts:
src/pybind/mgr/restful/module.py
src/pybind/mgr/restful/module.py