]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/crash: Serialize command handling 38592/head
authorBoris Ranto <branto@redhat.com>
Sat, 5 Dec 2020 03:14:32 +0000 (04:14 +0100)
committerLaura Paduano <lpaduano@suse.com>
Thu, 17 Dec 2020 14:02:43 +0000 (15:02 +0100)
commited01c92b2af30bbf39e5940aaa7ebba217289dac
tree935d64a50956e8d6ff56815b7077cf0bc307ec40
parentbdf3eebcd22d7d0b3dd4d5501bee5bac354d5b55
mgr/crash: Serialize command handling

All the implemented commands read or write the self.crashes structure.
We need to serialize them to avoid the threads from stepping over each
other toes.

This also makes sure that the main thread (serve method) does not
interfere with the commands.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit d98d141c4f90520ee0b20df2ae01563cfe6e03fe)
src/pybind/mgr/crash/module.py