]> err.no Git - linux-2.6/commit
[PATCH] fs: fix __block_write_full_page error case buffer submission
authorNick Piggin <npiggin@suse.de>
Tue, 20 Feb 2007 21:57:54 +0000 (13:57 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 21 Feb 2007 01:10:13 +0000 (17:10 -0800)
commitffda9d302267dbb7fc9bc38f6e4c1b3d61a536a9
treed3b95c0b7dc2edc602e71e2ff8389de79ea243ac
parentbc56bba8f31bd99f350a5ebfd43d50f411b620c7
[PATCH] fs: fix __block_write_full_page error case buffer submission

Andrew noticed that unlocking the page before submitting all buffers for
writeout could cause problems if the IO completes before we've finished
messing around with the page buffers, and they subsequently get freed.

Even if there were no bug, it is a good idea to bring the error case
into line with the common case here.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/buffer.c