]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: move rbd_unregister_watch() call into rbd_dev_image_release()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Apr 2017 10:17:37 +0000 (12:17 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:23 +0000 (09:19 +0200)
commit1572433a7213a48659dcc5a686df41849015b12c
treebb0059af80d5aedb2c4b124eb3e1b23f1e40ffea
parentf6f3c8889f3b822869188b1235dd6195b98ae995
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 f38b18e1c32f
("rbd: fix rbd map vs notify races").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c