summaryrefslogtreecommitdiff
path: root/include/uapi/linux/v4l2-common.h
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-10-01 07:10:04 +0400
committerJosh Durgin <josh.durgin@inktank.com>2014-06-11 05:09:25 +0400
commit22001f619f29ddf66582d834223dcff4c0b74595 (patch)
tree67d9a9cdcb5c7f3fe45e1fab6393c130eb65857c /include/uapi/linux/v4l2-common.h
parent77f33c03739697d01c2e730e4c2610424059ceaf (diff)
downloadlinux-22001f619f29ddf66582d834223dcff4c0b74595.tar.xz
rbd: only set disk to read-only once
rbd_open(), called every time the device is opened, calls set_device_ro(). There's no reason to set the device read-only or read-write every time it is opened. Just do this once during device setup, using set_disk_ro() instead because the struct block_device isn't available to us there. Signed-off-by: Josh Durgin <josh.durgin@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'include/uapi/linux/v4l2-common.h')
0 files changed, 0 insertions, 0 deletions