Skip to content
Commit 190f38e5 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix nfs_migrate_page()



The call to migrate_page() will cause the page->private field to be
cleared.
Also fix up the locking around the page->private transfer, so that we ensure
that calls to nfs_page_find_request() don't end up racing.

Finally, fix up a double free bug: nfs_unlock_request() already calls
nfs_release_request() for us...

Reported-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Tested-by: default avatarAndi Kleen <andi@firstfloor.org>
Cc: stable@kernel.org
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 053e324f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment