Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment