summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2020-05-20 15:31:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-22 09:33:06 +0200
commitfe75b26dd966c803f88c21773f6384091f928a20 (patch)
tree6aa9cd853ceed10bde403f33781e7645b2b02cb2 /tools/perf/scripts/python/export-to-postgresql.py
parenteb5c9989faf138b5bcd9c7ab28d36fbfa12e16f1 (diff)
jbd2: avoid leaking transaction credits when unreserving handle
commit 14ff6286309e2853aed50083c9a83328423fdd8c upstream. When reserved transaction handle is unused, we subtract its reserved credits in __jbd2_journal_unreserve_handle() called from jbd2_journal_stop(). However this function forgets to remove reserved credits from transaction->t_outstanding_credits and thus the transaction space that was reserved remains effectively leaked. The leaked transaction space can be quite significant in some cases and leads to unnecessarily small transactions and thus reducing throughput of the journalling machinery. E.g. fsmark workload creating lots of 4k files was observed to have about 20% lower throughput due to this when ext4 is mounted with dioread_nolock mount option. Subtract reserved credits from t_outstanding_credits as well. CC: stable@vger.kernel.org Fixes: 8f7d89f36829 ("jbd2: transaction reservation support") Reviewed-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20200520133119.1383-3-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions