summaryrefslogtreecommitdiffstats
path: root/fs/stat.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-05-12 08:25:37 +1000
committerNeilBrown <neilb@suse.de>2010-05-12 08:25:37 +1000
commite2218350465e7e0931676b4849b594c978437bce (patch)
tree395398081c277c533d28edd70d08a9394e7d8597 /fs/stat.c
parent627a2d3c29427637f4c5d31ccc7fcbd8d312cd71 (diff)
downloadlinux-e2218350465e7e0931676b4849b594c978437bce.tar.gz
linux-e2218350465e7e0931676b4849b594c978437bce.tar.bz2
linux-e2218350465e7e0931676b4849b594c978437bce.zip
md: set mddev readonly flag on blkdev BLKROSET ioctl
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. Cc: <stable@kernel.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions