]> err.no Git - linux-2.6/commit
[XFS] Fix racy access to pb_flags. pagebuf_rele() modified pb_flags after
authorDavid Chinner <dgc@sgi.com>
Sun, 4 Sep 2005 22:33:35 +0000 (08:33 +1000)
committerNathan Scott <nathans@sgi.com>
Sun, 4 Sep 2005 22:33:35 +0000 (08:33 +1000)
commit2f926587512869ebf6bc820bd5f030e127aae774
treef5bfb33cea1c6d7d2ababf5f800e63e2ec89a65a
parentba403ab43e896c57f32995ccba9a6bd6ec8dd1b9
[XFS] Fix racy access to pb_flags.  pagebuf_rele() modified pb_flags after
the pagebuf had been unlocked if the buffer was delwri. At high load, this
could result in a race when the superblock was being synced that would
result the flags being incorrect and the iodone functions being executed
incorrectly. This then leads to iclog callback failures or AIL list
corruptions resulting in filesystem shutdowns.

SGI-PV: 923981
SGI-Modid: xfs-linux:xfs-kern:23616a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_buf.h