summaryrefslogtreecommitdiffstats
path: root/lib/sbitmap.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2017-04-13 12:17:39 +0200
committerIlya Dryomov <idryomov@gmail.com>2017-05-04 09:19:23 +0200
commitf9bebd580360c141b5fdbede9cc13a4caf23cd1a (patch)
treeab3d7c8f24c84001554e6159e7eb00b1e24e62d3 /lib/sbitmap.c
parentrbd: support updating the lock cookie without releasing the lock (diff)
downloadlinux-f9bebd580360c141b5fdbede9cc13a4caf23cd1a.tar.xz
linux-f9bebd580360c141b5fdbede9cc13a4caf23cd1a.zip
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>
Diffstat (limited to 'lib/sbitmap.c')
0 files changed, 0 insertions, 0 deletions