aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorTao Ma <[email protected]>2011-10-30 22:26:08 +0000
committerTheodore Ts'o <[email protected]>2011-10-30 22:26:08 +0000
commitd73d5046a72467d4510825b99e2269e09ad80e15 (patch)
tree4ac8b5729e1aeffe8348557a7f77da1791c268cc /fs/jbd2/commit.c
parentext4: fix race in xattr block allocation path (diff)
downloadkernel-d73d5046a72467d4510825b99e2269e09ad80e15.tar.gz
kernel-d73d5046a72467d4510825b99e2269e09ad80e15.zip
ext4: Use correct locking for ext4_end_io_nolock()
We must hold i_completed_io_lock when manipulating anything on the i_completed_io_list linked list. This includes io->lock, which we were checking in ext4_end_io_nolock(). So move this check to ext4_end_io_work(). This also has the bonus of avoiding extra work if it is already done without needing to take the mutex. Signed-off-by: Tao Ma <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions