Re: 2.2.9 hangs in truncate_inode_pages

Trond Myklebust (trond.myklebust@fys.uio.no)
01 Jun 1999 12:29:56 +0200


Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

> I've been chasing a hang in 2.2.9* and it comes down to truncate_inode_pages.
>
> Now there are two things that have me wondering here and one cleanup item
>

A naiive question on my part perhaps: but why is truncate_inode_pages
calling page_cache_release(page) without having done an
atomic_inc(&page->count) first?

Surely that is a bug unless you can guarantee that the caller did it
for you.

Cheers,
Trond

-
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/