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

From: Linus Torvalds (torvalds@transmeta.com)
Date: Sun Jan 16 2000 - 01:03:53 EST


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.

                Linus

-
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:13 EST