1
0
Files
linux/drivers/block
Josh Durgin 20e0af67ce rbd: make rbd_obj_notify_ack() synchronous
The only user of rbd_obj_notify_ack() is rbd_watch_cb(). It used
asynchronously with no tracking of when the notify ack completes, so
it may still be in progress when the osd_client is shut down.  This
results in a BUG() since the osd client assumes no requests are in
flight when it stops. Since all notifies are flushed before the
osd_client is stopped, waiting for the notify ack to complete before
returning from the watch callback ensures there are no notify acks in
flight during shutdown.

Rename rbd_obj_notify_ack() to rbd_obj_notify_ack_sync() to reflect
its new synchronous nature.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
2013-09-09 11:16:02 -07:00
..
2013-06-19 13:52:10 +02:00
2013-04-09 14:13:19 -04:00
2013-06-12 16:29:45 -07:00
2013-04-09 14:13:32 -04:00
2012-03-28 18:30:03 +01:00
2013-06-29 12:46:45 +04:00
2013-06-29 12:46:45 +04:00
2013-03-28 14:50:49 -04:00
2013-07-03 16:08:05 -07:00
2013-05-31 11:45:52 -04:00
2013-04-09 14:13:32 -04:00