summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/amd_iommu_init.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2010-05-12 08:25:37 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-05 11:15:49 -0700
commit86f7d72920206f3d94af90ff65e7ed32552e41fe (patch)
tree905d44094f1698633ce77e54c191b6169bdb80a5 /arch/x86/kernel/amd_iommu_init.c
parent8e94bc5e7fda8d155462242d83ead72aa15fee8c (diff)
md: set mddev readonly flag on blkdev BLKROSET ioctl
commit e2218350465e7e0931676b4849b594c978437bce 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>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
0 files changed, 0 insertions, 0 deletions