Re: [PATCH] loop: clear read-only flag in loop_clr_fd.

From: Bodo Eggert
Date: Sun Feb 13 2011 - 15:42:20 EST


Tao Ma <tm@xxxxxx> 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@xxxxxxxxxxxxxxxxxxxx iNEC@xxxxxxxxxxxxxxxxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/