From: Trond Myklebust Date: Fri, 20 Oct 2006 06:28:38 +0000 (-0700) Subject: [PATCH] NFS: Fix oops in nfs_cancel_commit_list X-Git-Tag: v2.6.19-rc3~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6dff26a08189932eeb0fa4261e09e733b0fc540;p=pandora-kernel.git [PATCH] NFS: Fix oops in nfs_cancel_commit_list Fix two bugs: - nfs_inode_remove_request will call nfs_clear_request, so we cannot reference req->wb_page after it. Move the call to dec_zone_page_state so that it occurs while req->wb_page is still valid. - Calling nfs_clear_page_writeback is unnecessary since the radix tree tags will have been cleared by the call to nfs_inode_remove_request. Replace with a simple call to nfs_unlock_request. Signed-off-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed