]> git.baikalelectronics.ru Git - kernel.git/commit
quota: add missing use of dq_data_lock in __dquot_initialize
authorJeff Mahoney <jeffm@suse.com>
Wed, 27 Feb 2013 19:43:09 +0000 (14:43 -0500)
committerJan Kara <jack@suse.cz>
Mon, 11 Mar 2013 21:05:56 +0000 (22:05 +0100)
commit7b843152572352af73479a55458ca2a0f3f18f32
treeeabebb028d5b7023bf57c72d5936891a01a0e3d8
parent1d627f8ebb8f17386e39f8027c369ddadbf55bc3
quota: add missing use of dq_data_lock in __dquot_initialize

The bulk of __dquot_initialize runs under the dqptr_sem which
protects the inode->i_dquot pointers. It doesn't protect the
dereferenced contents, though. Those are protected by the
dq_data_lock, which is missing around the dquot_resv_space call.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c