Skip to contentSkip to conversation

loop: clear read-only flag in loop_clr_fd.

PATCH Bodo Eggert 1 participant 1 message Feb 13, 2011 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Review

Quoted 10 lines · Tao Ma

--- a/drivers/block/loop.c

(quoted diff) +3 -1
-     if (bdev)
+     if (bdev) {
+             set_device_ro(bdev, 0);
 invalidate_bdev(bdev);
+     }
 set_capacity(lo->lo_disk, 0);
 loop_sysfs_exit(lo);
 if (bdev) {

This looks like set_device_ro() should imply invalidate_bdev().

Signature · 4 lines
E.G.G.E.R.T.: Electronic Guardian Generated for 
              Efficient Repair and Troubleshooting
        -- http://www.brunching.com/toys/toy-cyborger.html (down)
Friß, Spammer: [email protected] [email protected]