rbd: lock_on_read map option
authorIlya Dryomov <idryomov@gmail.com>
Tue, 20 Sep 2016 12:23:17 +0000 (14:23 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Oct 2016 14:13:47 +0000 (16:13 +0200)
commit80de19122866d0a65f741e7ff2d5d20842d22d6b
treee840143ecf05346a1c33ef4f1110ddf4677d8f46
parent0276dca6c1ecb9a665645ff573e70685a57759af
rbd: lock_on_read map option

Add a per-device option to acquire exclusive lock on reads (in addition
to writes and discards).  The use case is iSCSI, where it will be used
to prevent execution of stale writes after the implicit failover.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Mike Christie <mchristi@redhat.com>
drivers/block/rbd.c