]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ext4: fix locking typo in mballoc which could cause soft lockup hangs
authorTheodore Ts'o <tytso@mit.edu>
Fri, 27 Mar 2009 23:43:21 +0000 (19:43 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Mar 2009 23:43:21 +0000 (19:43 -0400)
commite7c9e3e99adf6c49c5d593a51375916acc039d1e
treea0aef22aed6ff8362a9816d8780db4584bc06ffa
parenta7b19448ddbdc34b2b8fedc048ba154ca798667b
ext4: fix locking typo in mballoc which could cause soft lockup hangs

Smatch (http://repo.or.cz/w/smatch.git/) complains about the locking in
ext4_mb_add_n_trim() from fs/ext4/mballoc.c

  4438          list_for_each_entry_rcu(tmp_pa, &lg->lg_prealloc_list[order],
  4439                                                  pa_inode_list) {
  4440                  spin_lock(&tmp_pa->pa_lock);
  4441                  if (tmp_pa->pa_deleted) {
  4442                          spin_unlock(&pa->pa_lock);
  4443                          continue;
  4444                  }

Brown paper bag time...

Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/mballoc.c