commit | fd22aef8b47cfc068448df65c1183698b0abd815 | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <idryomov@gmail.com> | Thu Apr 13 12:17:37 2017 +0200 |
committer | Ilya Dryomov <idryomov@gmail.com> | Thu May 04 09:19:23 2017 +0200 |
tree | bb0059af80d5aedb2c4b124eb3e1b23f1e40ffea | |
parent | 8b679ec5257eeb3d73b71a613cad2769f21c86ad [diff] |
rbd: move rbd_unregister_watch() call into rbd_dev_image_release() rbd_dev->disk tear down vs rbd_watch_cb() race shouldn't be a problem anymore thanks to EXISTS and REMOVING checks in rbd_dev_update_size(). A similar race could occur on "rbd map", see commit 811c66887746 ("rbd: fix rbd map vs notify races"). Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Jason Dillaman <dillaman@redhat.com>