From: Yingping Lu Date: Wed, 22 Mar 2006 01:44:35 +0000 (+1100) Subject: [XFS] Fixing the error caused by the conflict between DIO Write's X-Git-Tag: v2.6.17-rc1~1000^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa8046f50bcb88ab9183ee1f22de5adc42bf92a;p=pandora-kernel.git [XFS] Fixing the error caused by the conflict between DIO Write's conversion and concurrent truncate operations. Use vn_iowait to wait for the completion of any pending DIOs. Since the truncate requires exclusive IOLOCK, so this blocks any further DIO operations since DIO write also needs exclusive IOBLOCK. This serves as a barrier and prevent any potential starvation. SGI-PV: 947420 SGI-Modid: xfs-linux-melb:xfs-kern:208088a Signed-off-by: Yingping Lu Signed-off-by: Nathan Scott --- Reading git-diff-tree failed