From: Trond Myklebust Date: Sat, 17 Mar 2012 15:59:30 +0000 (-0400) Subject: NFS: Use cond_resched_lock() to reduce latencies in the commit scans X-Git-Tag: v3.4-rc1~123^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3be88d67cc17d0f0ab6edaf131516793fc947e;p=pandora-kernel.git NFS: Use cond_resched_lock() to reduce latencies in the commit scans Ensure that we conditionally drop the inode->i_lock when it is safe to do so in the commit loops. We do so after locking the nfs_page, but before removing it from the commit list. We can then use list_safe_reset_next to recover the loop after the lock is retaken. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed