Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: [PATCH] loop: clear read-only flag in loop_clr_fd. | Date | Sun, 13 Feb 2011 21:41:51 +0100 |
| |
Tao Ma <tm@tao.ma> wrote:
> --- a/drivers/block/loop.c
> - 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(). -- 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: PanIhbEe3@y.7eggert.dyndns.org iNEC@zy1oe.7eggert.dyndns.org
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |