From: Trond Myklebust Date: Sun, 20 May 2007 14:18:27 +0000 (-0400) Subject: NFS: Avoid a deadlock situation on write X-Git-Tag: v2.6.22-rc3~15^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fe7f8487ae742239dd8c66596e2311c30d057d1;p=pandora-kernel.git 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: Trond Myklebust --- Reading git-diff-tree failed