]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: transaction reservation support
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 16:35:11 +0000 (12:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 16:35:11 +0000 (12:35 -0400)
commit78b5e7c061c02e77b66bd6f55363595dcff0a969
tree2864747255fb15044c376519c0cb10bb223e9361
parent1017efc8c30bdb2e809f263218e0991ffab31b91
jbd2: transaction reservation support

In some cases we cannot start a transaction because of locking
constraints and passing started transaction into those places is not
handy either because we could block transaction commit for too long.
Transaction reservation is designed to solve these issues.  It
reserves a handle with given number of credits in the journal and the
handle can be later attached to the running transaction without
blocking on commit or checkpointing.  Reserved handles do not block
transaction commit in any way, they only reduce maximum size of the
running transaction (because we have to always be prepared to
accomodate request for attaching reserved handle).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4_jbd2.c
fs/jbd2/commit.c
fs/jbd2/journal.c
fs/jbd2/transaction.c
include/linux/jbd2.h