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-10-16 16:25:19 +11:00
2006-01-01 22:21:50 +01:00
2009-12-18 14:04:11 -08:00
2009-12-18 14:04:11 -08:00
2009-04-02 19:55:23 +01:00
2009-12-18 14:05:04 -08:00
2009-07-23 20:30:42 +01:00
2009-12-18 14:04:59 -08:00
2009-10-16 23:18:17 +01: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-07-23 20:30:42 +01:00
2009-10-16 23:18:15 +01:00
2010-02-23 07:37:58 -08:00
2009-09-04 20:40:34 +01:00
2009-06-22 10:12:33 +01:00
2009-08-22 17:52:15 -05:00
2008-10-10 13:36:58 +01:00
2009-04-02 19:55:27 +01:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:27 +01:00
2009-09-11 14:33:31 +02:00
2009-06-22 10:12:13 +01:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:28 +01:00
2009-10-16 23:18:17 +01:00
2009-04-02 19:55:35 +01:00
2009-12-18 14:05:02 -08:00
2010-02-23 07:37:58 -08:00
2009-06-22 10:12:29 +01:00
2010-01-25 10:49:41 -08:00
2009-04-02 19:55:28 +01:00
2009-12-18 14:05:02 -08:00
2007-10-20 02:01:26 +01:00
2009-01-06 03:04:58 +00:00
2010-04-26 07:41:29 -07:00
2009-07-23 20:30:40 +01:00
2009-06-18 08:49:23 +10:00
2009-09-08 17:55:21 -07:00
2010-04-26 07:41:35 -07:00
2009-06-18 08:49:42 +10:00
2009-10-16 16:25:19 +11:00
2010-07-05 11:10:46 -07:00
2009-12-18 14:04:11 -08:00
2009-03-31 15:09:39 +11:00
2010-04-26 07:41:35 -07:00
2009-06-16 16:54:21 +10:00
2010-04-26 07:41:35 -07:00
2009-06-16 16:54:21 +10:00
2010-07-05 11:10:46 -07:00
2009-06-16 16:54:21 +10:00
2010-05-12 14:57:15 -07:00
2009-10-16 16:27:34 +11:00
2009-03-31 15:09:39 +11:00
2009-10-16 16:25:19 +11:00
2009-10-16 16:25:19 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 14:57:37 +11:00
2010-07-05 11:10:46 -07:00
2009-06-16 16:54:21 +10:00
2009-10-16 16:25:19 +11:00