Hi,
On Mon, 2005-04-11 at 21:46, Andrew Morton wrote:
> "Stephen C. Tweedie" <[email protected]> wrote:
> >
> > Andrew, what was the exact illegal state of the pages you were seeing
> > when fixing that recent leak? It looks like it's nothing more complex
> > than dirty buffers on an anon page.
>
> Correct.
Good --- I think I've got the debugging solid against 2.4 for that case,
patching against 2.6 now.
> > I think that simply calling
> > try_to_release_page() for all the remaining buffers at umount time will
>
> Presumably these pages have no ->mapping, so try_to_release_page() will
> call try_to_free_buffers().
Exactly.
> > The only thing that would be required on
> > top of that would be a check that the page is also on the VM LRU lists.
>
> Why do we have dirty buffers left over at umount time?
In the leak case we're worried about, the buffers are dirty but the page
is anon so there's nothing to clean them up. The buffers _will_ be
destroyed by unmount, sure; invalidate_bdev() should see to that. But
I'm doing the bh leak check before we get to the final
invalidate_bdev(), so they should still be available for testing at that
point.
--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]