Skip to content
Commit 08261673 authored by Andrew Perepechko's avatar Andrew Perepechko Committed by Jan Kara
Browse files

quota: Fix possible dq_flags corruption



dq_flags are modified non-atomically in do_set_dqblk via __set_bit calls and
atomically for example in mark_dquot_dirty or clear_dquot_dirty.  Hence a
change done by an atomic operation can be overwritten by a change done by a
non-atomic one. Fix the problem by using atomic bitops even in do_set_dqblk.

Signed-off-by: default avatarAndrew Perepechko <andrew.perepechko@sun.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 4c5e6c0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment