aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/atom.h
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2017-10-12 12:35:19 +0200
committerIlya Dryomov <idryomov@gmail.com>2017-11-13 12:11:41 +0100
commit1de797bb248d2276337139fecaffbd3bbc0f736d (patch)
treec8ee0b09435866327547ce07b5603346588e079a /drivers/gpu/drm/amd/amdgpu/atom.h
parentbb0581f01c38ff525295fc6128bc3a49202dabae (diff)
rbd: fix and simplify rbd_ioctl_set_ro()
->open_count/-EBUSY check is bogus and wrong: when an open device is set read-only, blkdev_write_iter() refuses further writes with -EPERM. This is standard behaviour and all other block devices allow this. set_disk_ro() call is also problematic: we affect the entire device when called on a single partition. All rbd_ioctl_set_ro() needs to do is refuse ro -> rw transition for mapped snapshots. Everything else can be handled by generic code. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.h')
0 files changed, 0 insertions, 0 deletions