quota: missing lock in dqcache_shrink_scan()
authorNiu Yawei <yawei.niu@gmail.com>
Wed, 4 Jun 2014 04:22:13 +0000 (12:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jul 2014 15:05:58 +0000 (08:05 -0700)
commit7836db47d6b664c77d7ebdea2e91e776caac4c34
treedb16db1f423e45c2edb81d9ad83bc75e913865a5
parentf09e424e436c56fd8c4ebd182d407851b7f42d83
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/quota/dquot.c