]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: kill rbd_is_lock_supported()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Apr 2017 10:17:39 +0000 (12:17 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:23 +0000 (09:19 +0200)
commite7e0edb2dca840d752efaa0babb01f7a510e1d98
treeab3d7c8f24c84001554e6159e7eb00b1e24e62d3
parent75d9282030570d4a4e0db2dbe1e34812c29c122c
rbd: kill rbd_is_lock_supported()

Currently the exclusive lock is acquired only if the mapping is
writable, i.e. an image HEAD mapped in rw mode.  This means that we
don't acquire the lock for executing a read from a snapshot or an image
HEAD mapped in ro mode, even if lock_on_read is set.  This is somewhat
weird and inconsistent with "no automatic exclusive lock transfers"
mode, where the lock is acquired unconditionally.

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