Bug #4941
closedrbd: only set up watch for mapped images
0%
Description
Any changes to parent images are immaterial to any mapped clone.
So there is no need to have a watch event registered on header
objects except for the header object of an image that is mapped.
We can't set up the watch request until we know the name of the
header object though. So pass a flag to rbd_dev_image_probe() to
indicate whether this probe is for a mapping or for a parent image.
Change the second parameter to rbd_dev_header_watch_sync() be
Boolean while we're at it.
Signed-off-by: Alex Elder <elder@inktank.com>
Updated by Alex Elder almost 11 years ago
I added this to the patch description:
In fact, a watch request is a write operation, and we may only
have read access to a parent image.
Updated by Alex Elder almost 11 years ago
- Status changed from In Progress to Fix Under Review
The following has been posted for review. It is one of
the patches available in the "review/wip-rbd-cleanup-2"
branch of the ceph-client git repository.
[PATCH 4/5] rbd: only set up watch for mapped images
Updated by Alex Elder almost 11 years ago
- Status changed from Fix Under Review to Resolved
The following has been committed to the ceph-client
"testing-next" branch.
1f3ef78 rbd: only set up watch for mapped images