Files
linux/drivers/md
Dan Williams d04e05f726 md: set mddev readonly flag on blkdev BLKROSET ioctl
commit e221835046 upstream.

When the user sets the block device to readwrite then the mddev should
follow suit.  Otherwise, the BUG_ON in md_write_start() will be set to
trigger.

The reverse direction, setting mddev->ro to match a set readonly
request, can be ignored because the blkdev level readonly flag precludes
the need to have mddev->ro set correctly.  Nevermind the fact that
setting mddev->ro to 1 may fail if the array is in use.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-07-05 11:10:46 -07:00
..
2009-06-22 10:12:26 +01:00
2009-12-18 14:05:02 -08:00
2009-04-09 00:27:17 +01:00
2009-06-22 10:12:29 +01:00
2009-12-18 14:05:02 -08:00
2010-04-26 07:41:29 -07:00