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)
commitf1167009711032b0d747ec89a632a626c901a1ad
treef20860716aa42d5cae6a0a570509d030fcdc5a77
parent87e698734b9e618276c797092ccdd91da292d10e
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