From: Lachlan McIlroy Date: Tue, 8 May 2007 03:50:12 +0000 (+1000) Subject: [XFS] Fix race in xfs_write() b/w dmapi callout and direct I/O checks. X-Git-Tag: v2.6.22-rc1~353^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71dfd5a396d11512aa6c8ed0d35b268bc084bb9b;p=pandora-kernel.git [XFS] Fix race in xfs_write() b/w dmapi callout and direct I/O checks. In xfs_write() the iolock is dropped and reacquired in XFS_SEND_DATA() which means that the file could change from not-cached to cached and we need to redo the direct I/O checks. We should also redo the direct I/O checks when the file size changes regardless if O_APPEND is set or not. SGI-PV: 963483 SGI-Modid: xfs-linux-melb:xfs-kern:28440a Signed-off-by: Lachlan McIlroy Signed-off-by: David Chinner Signed-off-by: Tim Shimmin --- Reading git-diff-tree failed