aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/requestqueue.h
diff options
context:
space:
mode:
authordingdinghua <dingdinghua85@gmail.com>2009-07-15 15:42:05 -0400
committerJan Kara <jack@suse.cz>2009-07-21 05:54:42 -0400
commitf1015c447781729060c415f5133164c638561f25 (patch)
tree3fb03db8dc97bf9037cbdf91b71e28a2bbb8eed3 /fs/dlm/requestqueue.h
parent43237b5490e8f2f4679decd660064ff35ce490cc (diff)
jbd: fix race between write_metadata_buffer and get_write_access
The function journal_write_metadata_buffer() calls jbd_unlock_bh_state(bh_in) too early; this could potentially allow another thread to call get_write_access on the buffer head, modify the data, and dirty it, and allowing the wrong data to be written into the journal. Fortunately, if we lose this race, the only time this will actually cause filesystem corruption is if there is a system crash or other unclean shutdown of the system before the next commit can take place. Signed-off-by: dingdinghua <dingdinghua85@gmail.com> Acked-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/dlm/requestqueue.h')
0 files changed, 0 insertions, 0 deletions