]> git.neil.brown.name Git - history.git/commit
[PATCH] fix a writeback race
authorAndrew Morton <akpm@zip.com.au>
Thu, 4 Jul 2002 15:31:36 +0000 (08:31 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Jul 2002 15:31:36 +0000 (08:31 -0700)
commit2ab9665b73efda989f04aba596e2d26c1c152e4d
tree76199cccbac0fd485b2096f0e693527a627c6f49
parent193ae03649cdb7e0f0952314e3fac2c850b3d86a
[PATCH] fix a writeback race

Fixes a bug in generic_writepages() and its cut-n-paste-cousin,
mpage_writepages().

The code was clearing PageDirty and then baling out if it discovered
the page was nder writeback.  Which would cause the dirty bit to be
lost.

It's a very small window, but reversing the order so PageDirty is only
cleared when we know for-sure that IO will be started fixes it up.
fs/mpage.c
mm/page-writeback.c