]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/object_context_loader: check on old watchers when loading obc
authorXuehan Xu <xxhdx1985126@gmail.com>
Sat, 17 Dec 2022 12:49:31 +0000 (20:49 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Mon, 9 Jan 2023 01:20:34 +0000 (01:20 +0000)
commitcd79f99a3efb504ffe02016c56ea5ef1b46f5a57
tree5f9d732a717c09b8ba569e54328cd75dd288e43d
parentfe4cb1a645c4aa9ed237b6ad350a1026541d1099
crimson/osd/object_context_loader: check on old watchers when loading obc

Currently, when the following events happen, an rbd image can't be opened:

1. osd stops;
2. rbd client crashes;
3. osd start again

In this case, when a client tries to open the rbd image again, it will
always see the old watchers and can't lock the rbd image.

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/crimson/osd/watch.cc
src/crimson/osd/watch.h