summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2017-03-06 09:20:20 -0800
committerBrian Behlendorf <[email protected]>2017-03-06 09:20:20 -0800
commit7a789346afec87a89c4cde465faf9be4996db556 (patch)
tree27f0c2a405784e439ba62505747dac712fbee6b9 /udev
parentfb963d33ee0dd350143ba1c9cd35d5f7d86910d2 (diff)
Fix loop device becomes read-only
Commit 933ec99 removes read and write from f_op because the vfs layer will select iter_write or aio_write automatically. However, for Linux <= 4.0, loop_set_fd will actually check f_op->write and set read-only if not exists. This patch add them back and use the generic do_sync_{read,write} for aio_{read,write} and new_sync_{read,write} for {read,write}_iter. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #5776 Closes #5855
Diffstat (limited to 'udev')
0 files changed, 0 insertions, 0 deletions