]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: store lock cookie
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Apr 2017 10:17:38 +0000 (12:17 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:23 +0000 (09:19 +0200)
commitf1c5e9f9a3e34f15e2f228afeb205bdfce9ebbcd
tree77a36c3a69ab97acb59f7a3b95f308612af3c198
parente886c538d51c253916e415173976e7e41c954f83
rbd: store lock cookie

In preparation for supporting set_cookie method (or rather set_cookie
fallback for older OSDs), store the lock cookie on lock and use it on
unlock instead of recalculating from rbd_dev->watch_cookie.

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