Repository navigation
Commit b877605
committed
rbd: don't test rbd_dev->opts in rbd_dev_image_release()
rbd_dev->opts is used to distinguish between the image that is being
mapped and a parent. However, because we no longer establish watch for
read-only mappings, this test is imprecise and results in unnecessary
rbd_unregister_watch() calls.
Make it consistent with need_watch in rbd_dev_image_probe().
Fixes: b9ef2b8 ("rbd: don't establish watch for read-only mappings")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>1 parent 952c48b commit b877605
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6898 | 6898 | | |
6899 | 6899 | | |
6900 | 6900 | | |
6901 | | - | |
| 6901 | + | |
6902 | 6902 | | |
6903 | 6903 | | |
6904 | 6904 | | |
| |||
0 commit comments