From: Andrew Perepechko Date: Mon, 12 Apr 2010 18:16:50 +0000 (+0400) Subject: quota: Fix possible dq_flags corruption X-Git-Tag: v2.6.34-rc4~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08261673cb6dc638c39f44d69b76fffb57b92a8b;p=pandora-kernel.git 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: Andrew Perepechko Signed-off-by: Jan Kara --- Reading git-diff-tree failed