Commit 1adc9064 authored by Niu Yawei's avatar Niu Yawei Committed by Paul Gortmaker
Browse files

ext4: fix race in ext4_mb_add_n_trim()



commit f1167009 upstream.

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

Signed-off-by: default avatarNiu Yawei <yawei.niu@intel.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 0fd8d877
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment