Skip to content
Commit 7fe7f848 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Avoid a deadlock situation on write



When processes are allowed to attempt to lock a non-contiguous range of nfs
write requests, it is possible for generic_writepages to 'wrap round' the
address space, and call writepage() on a request that is already locked by
the same process.

We avoid the deadlock by checking if the page index is contiguous with the
list of nfs write requests that is already held in our
nfs_pageio_descriptor prior to attempting to lock a new request.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 585a2858
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