jbd2: Call journal commit callback without holding j_list_lock
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 6 Nov 2008 22:50:21 +0000 (17:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Nov 2008 22:50:21 +0000 (17:50 -0500)
commitfb68407b0d9efba962c03f55009c797e22f024bc
treeb3f33f513969d6f77c5b6a6f71b662057d3440a5
parentc3a326a657562dab81acf05aee106dc1fe345eb4
jbd2: Call journal commit callback without holding j_list_lock

Avoid freeing the transaction in __jbd2_journal_drop_transaction() so
the journal commit callback can run without holding j_list_lock, to
avoid lock contention on this spinlock.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/checkpoint.c
fs/jbd2/commit.c
include/linux/jbd2.h