From: David Chinner Date: Mon, 14 May 2007 08:24:09 +0000 (+1000) Subject: [XFS] Sleeping with the ilock waiting for I/O completion is Bad. X-Git-Tag: v2.6.23-rc1~1056^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40095b64f5da601a8ab61fbe4b40feb46830052e;p=pandora-kernel.git [XFS] Sleeping with the ilock waiting for I/O completion is Bad. Recent fixes to the filesystem freezing code introduced a vn_iowait call in the middle of the sync code. Unfortunately, at the point where this call was added we are holding the ilock. The ilock is needed by I/O completion for unwritten extent conversion and now updating the file size. Hence I/o cannot complete if we hold the ilock while waiting for I/O completion. Fix up the bug and clean the code up around it. SGI-PV: 963674 SGI-Modid: xfs-linux-melb:xfs-kern:28566a Signed-off-by: David Chinner Signed-off-by: Christoph Hellwig Signed-off-by: Tim Shimmin --- Reading git-diff-tree failed