From 22001f619f29ddf66582d834223dcff4c0b74595 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 30 Sep 2013 20:10:04 -0700 Subject: [PATCH] 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-format-patch failed