From: Josh Durgin Date: Thu, 29 Aug 2013 04:43:09 +0000 (-0700) Subject: libceph: add function to ensure notifies are complete X-Git-Tag: v3.12-rc2~16^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd935f44a40f8fb02aff2cc0df2269c92422df1c;p=pandora-kernel.git libceph: add function to ensure notifies are complete 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 Reviewed-by: Sage Weil Reviewed-by: Alex Elder --- Reading git-diff-tree failed