Commit cdc08982 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Jon Mason

ntb: make DMA_OUT_RESOURCE_TO HZ independent

schedule_timeout_* takes a timeout in jiffies but the code currently is
passing in a constant which makes this timeout HZ dependent, so pass it
through msecs_to_jiffies() to fix this up.
Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Acked-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent c0a88032
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
#define MAX_THREADS 32 #define MAX_THREADS 32
#define MAX_TEST_SIZE SZ_1M #define MAX_TEST_SIZE SZ_1M
#define MAX_SRCS 32 #define MAX_SRCS 32
#define DMA_OUT_RESOURCE_TO 50 #define DMA_OUT_RESOURCE_TO msecs_to_jiffies(50)
#define DMA_RETRIES 20 #define DMA_RETRIES 20
#define SZ_4G (1ULL << 32) #define SZ_4G (1ULL << 32)
#define MAX_SEG_ORDER 20 /* no larger than 1M for kmalloc buffer */ #define MAX_SEG_ORDER 20 /* no larger than 1M for kmalloc buffer */
......
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