quota: missing lock in dqcache_shrink_scan()
authorNiu Yawei <yawei.niu@gmail.com>
Wed, 4 Jun 2014 04:22:13 +0000 (12:22 +0800)
committerJan Kara <jack@suse.cz>
Tue, 15 Jul 2014 20:36:18 +0000 (22:36 +0200)
commitd68aab6b8f572406aa93b45ef6483934dd3b54a6
treee21ddba36d8ffa6706dc0c0db4ff7f8a81a92f2e
parent1795cd9b3a91d4b5473c97f491d63892442212ab
quota: missing lock in dqcache_shrink_scan()

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.

CC: stable@vger.kernel.org
Fixes: 1ab6c4997e04a00c50c6d786c2f046adc0d1f5de
Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c