From: Trond Myklebust Date: Mon, 20 Mar 2006 18:44:50 +0000 (-0500) Subject: NFS: Fix a race with PG_private and nfs_release_page() X-Git-Tag: v2.6.17-rc1~667^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb7d638262019cbac5d15ab74ffd1c29242c7cb;p=pandora-kernel.git NFS: Fix a race with PG_private and nfs_release_page() We don't need to set PG_private for readahead pages, since they never get unlocked while I/O is in progress. However there is a small race in nfs_readpage_release() whereby the page may be unlocked, and have PG_private set. Fix is to have PG_private set only for the case of writes... Also fix a bug in nfs_clear_page_writeback(): Don't attempt to clear the radix_tree tag if we've already deleted the radix tree entry. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed