Re: [PATCH v2 2/3] rbd: complete notifies before cleaning up osd_client and rbd_dev

2013-09-03 Thread Alex Elder
On 08/29/2013 07:57 PM, Josh Durgin wrote: To ensure rbd_dev is not used after it's released, flush all pending notify callbacks before calling rbd_dev_image_release(). No new notifies can be added to the queue at this point because the watch has already be unregistered with the osd_client.

[PATCH v2 2/3] rbd: complete notifies before cleaning up osd_client and rbd_dev

2013-08-29 Thread Josh Durgin
To ensure rbd_dev is not used after it's released, flush all pending notify callbacks before calling rbd_dev_image_release(). No new notifies can be added to the queue at this point because the watch has already be unregistered with the osd_client. Signed-off-by: Josh Durgin