[PATCH] handle concurrent block_write_full_page and set_page_dirty
authorAndrew Morton <akpm@zip.com.au>
Sun, 5 May 2002 08:10:16 +0000 (01:10 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 5 May 2002 08:10:16 +0000 (01:10 -0700)
commit46c709c0c03b148ec55db561230ce39fbdae00f6
tree79498f60104d54072ec3a7ea94a31c688e3eb5e5
parentd028eab535bd8c1597391fd850f93501ff06f044
[PATCH] handle concurrent block_write_full_page and set_page_dirty

set_page_dirty() runs without the page lock.  So
__block_write_full_page() needs to be able to cope with the page's
buffers being dirtied concurrently, on another CPU.

Do this with careful ordering and a test-and-set.
fs/buffer.c
mm/page-writeback.c