]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix race in ext4_mb_add_n_trim()
authorNiu Yawei <yawei.niu@gmail.com>
Sat, 2 Feb 2013 02:31:27 +0000 (21:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Feb 2013 02:31:27 +0000 (21:31 -0500)
commit457f5da7c37b2245f4a56827ecac4f3b8e5c3fab
treef20860716aa42d5cae6a0a570509d030fcdc5a77
parent2113d974811f141410b01afba540138899b247ee
ext4: fix race in ext4_mb_add_n_trim()

In ext4_mb_add_n_trim(), lg_prealloc_lock should be taken when
changing the lg_prealloc_list.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/mballoc.c