mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
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: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
a43bf60444
commit
648a4548d6
1 changed files with 18 additions and 11 deletions
31
fs/nfs/dir.c
31
fs/nfs/dir.c
Loading…
Add table
Add a link
Reference in a new issue