]> git.itanic.dy.fi Git - linux-stable/commit
quota: missing lock in dqcache_shrink_scan()
authorNiu Yawei <yawei.niu@gmail.com>
Wed, 4 Jun 2014 04:22:13 +0000 (12:22 +0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 29 Jul 2014 14:56:54 +0000 (16:56 +0200)
commit51a009349eb711296f6719cc4e5bfbf3bcd69999
treee71136b51b357458a090bb81980162341abeebee
parent4e873a3de6ff547928e8b171a6de07993823e572
quota: missing lock in dqcache_shrink_scan()

commit d68aab6b8f572406aa93b45ef6483934dd3b54a6 upstream.

Commit 1ab6c4997e04 (fs: convert fs shrinkers to new scan/count API)
accidentally removed locking from quota shrinker. Fix it -
dqcache_shrink_scan() should use dq_list_lock to protect the
scan on free_dquots list.

Fixes: 1ab6c4997e04a00c50c6d786c2f046adc0d1f5de
Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/quota/dquot.c