]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-mgr: hold lock while accessing the request list and submitting request
authorJerry Lee <leisurelysw24@gmail.com>
Mon, 12 Nov 2018 06:27:53 +0000 (14:27 +0800)
committerJerry Lee <leisurelysw24@gmail.com>
Mon, 12 Nov 2018 06:27:53 +0000 (14:27 +0800)
commitb09aefc2d6af3de8cc3df30258dfdc639c919a9f
treea66a0d72dc0f233cfd9239ce796ac7e0a30c475f
parent3b4970053c05128b87bc88325e0149ebe898c482
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>
src/pybind/mgr/restful/module.py