aboutsummaryrefslogtreecommitdiff
path: root/fs/quota_v1.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-03-19 11:32:05 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-19 11:32:05 -0700
commita8e7d49aa7be728c4ae241a75a2a124cdcabc0c5 (patch)
treefec49351496b886d8aa0e7b55e58c2f1394b051a /fs/quota_v1.c
parent68df3755e383e6fecf2354a67b08f92f18536594 (diff)
Fix race in create_empty_buffers() vs __set_page_dirty_buffers()
Nick Piggin noticed this (very unlikely) race between setting a page dirty and creating the buffers for it - we need to hold the mapping private_lock until we've set the page dirty bit in order to make sure that create_empty_buffers() might not build up a set of buffers without the dirty bits set when the page is dirty. I doubt anybody has ever hit this race (and it didn't solve the issue Nick was looking at), but as Nick says: "Still, it does appear to solve a real race, which we should close." Acked-by: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/quota_v1.c')
0 files changed, 0 insertions, 0 deletions