summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorTahsin Erdogan <tahsin@google.com>2017-05-21 22:32:23 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-05-21 22:32:23 -0400
commitb4709067ac0944e4a5b94eabdc26155c6f2efbd7 (patch)
treede9a366b1bdd21eaf01db395ded3681e0c7a79b0 /fs/ext4
parent964edf66bf9ab70cb387b27946c0aef7b94c4d1b (diff)
jbd2: preserve original nofs flag during journal restart
When a transaction starts, start_this_handle() saves current PF_MEMALLOC_NOFS value so that it can be restored at journal stop time. Journal restart is a special case that calls start_this_handle() without stopping the transaction. start_this_handle() isn't aware that the original value is already stored so it overwrites it with current value. For instance, a call sequence like below leaves PF_MEMALLOC_NOFS flag set at the end: jbd2_journal_start() jbd2__journal_restart() jbd2_journal_stop() Make jbd2__journal_restart() restore the original value before calling start_this_handle(). Fixes: 81378da64de6 ("jbd2: mark the transaction context with the scope GFP_NOFS context") Signed-off-by: Tahsin Erdogan <tahsin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions