diff options
author | Josh Durgin <josh.durgin@inktank.com> | 2013-08-28 21:43:09 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-09 12:24:26 -0800 |
commit | a2e5951b11b406a83f84c1eb3b5d722491f4d883 (patch) | |
tree | df9395701dfa87884117589db8162a06d01d8653 /tools | |
parent | dd932ee7a2453d86c920d3bbd2938602c5c9aaca (diff) | |
download | linux-3.10-a2e5951b11b406a83f84c1eb3b5d722491f4d883.tar.gz linux-3.10-a2e5951b11b406a83f84c1eb3b5d722491f4d883.tar.bz2 linux-3.10-a2e5951b11b406a83f84c1eb3b5d722491f4d883.zip |
libceph: add function to ensure notifies are complete
commit dd935f44a40f8fb02aff2cc0df2269c92422df1c upstream.
Without a way to flush the osd client's notify workqueue, a watch
event that is unregistered could continue receiving callbacks
indefinitely.
Unregistering the event simply means no new notifies are added to the
queue, but there may still be events in the queue that will call the
watch callback for the event. If the queue is flushed after the event
is unregistered, the caller can be sure no more watch callbacks will
occur for the canceled watch.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions