Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 648a4548 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Don't deadlock when cookie hashes collide


In the very rare case where the readdir reply contains multiple cookies
that map to the same hash value, we can end up deadlocking waiting for a
page lock that we already hold. In this case we should fail the page
lock by using grab_cache_page_nowait().

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent a43bf604
Branches
Tags
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