Commit 76065a80 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] increase number of transaction locks in JFS txnmgr

Original fix from Andi Kleen
parent 4f096985
...@@ -82,9 +82,9 @@ static struct { ...@@ -82,9 +82,9 @@ static struct {
static int nTxBlock = 512; /* number of transaction blocks */ static int nTxBlock = 512; /* number of transaction blocks */
struct tblock *TxBlock; /* transaction block table */ struct tblock *TxBlock; /* transaction block table */
static int nTxLock = 2048; /* number of transaction locks */ static int nTxLock = 4096; /* number of transaction locks */
static int TxLockLWM = 2048*.4; /* Low water mark for number of txLocks used */ static int TxLockLWM = 4096*.4; /* Low water mark for number of txLocks used */
static int TxLockHWM = 2048*.8; /* High water mark for number of txLocks used */ static int TxLockHWM = 4096*.8; /* High water mark for number of txLocks used */
struct tlock *TxLock; /* transaction lock table */ struct tlock *TxLock; /* transaction lock table */
static int TlocksLow = 0; /* Indicates low number of available tlocks */ static int TlocksLow = 0; /* Indicates low number of available tlocks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment