lkml.org 
[lkml]   [2011]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] loop: clear read-only flag in loop_clr_fd.
Date
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/

\
 
 \ /
  Last update: 2011-02-13 21:45    [W:0.296 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site