Re: [Patch] Cleanup struct gendisk registration, 2.3.40-pre1

From: Alexander Viro (aviro@redhat.com)
Date: Sun Jan 16 2000 - 01:44:47 EST


On Sat, 15 Jan 2000, Linus Torvalds wrote:

>
>
> On Sat, 15 Jan 2000, Alexander Viro wrote:
> >
> > Folks, looks like we have a funny failure mode: we invalidate buffers only
> > upon close(), right? Well, going through the partition table happens
> > without open(). So consider the following scenario:
>
> A variation on this is why the partitioning code does something along the
> lines of
>
> bh = bread(..)
> ...
> bforget(bh);
>
> (ie uses "bforget()" instead of "brelse()").
>
> So you actually shouldn't see that failure mode you're talking about. But
> hey, who knows.

Umm... Yes, if we can guarantee that nothing will make us a present -
extra reference to the buffer_head. OTOH... nope, probably can't happen.

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



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:12 EST