From: Josh Durgin Date: Tue, 1 Oct 2013 03:10:04 +0000 (-0700) Subject: rbd: only set disk to read-only once X-Git-Tag: omap-for-v3.16/fixes-against-rc1~24^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22001f619f29ddf66582d834223dcff4c0b74595;p=pandora-kernel.git 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 Reviewed-by: Alex Elder --- Reading git-diff-tree failed