From 0db016a31713b2009fc83f9920bef0069d1c568b Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Thu, 10 Jan 2019 07:25:27 +0100 Subject: [PATCH] if: use blk_queue_max_hw_sectors() --- kernel/mars_if.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/mars_if.c b/kernel/mars_if.c index ae27292a..446822d2 100644 --- a/kernel/mars_if.c +++ b/kernel/mars_if.c @@ -43,6 +43,7 @@ #define USE_MAX_PHYS_SEGMENTS (MARS_MAX_SEGMENT_SIZE >> 9) #define USE_MAX_SEGMENT_SIZE MARS_MAX_SEGMENT_SIZE #define USE_LOGICAL_BLOCK_SIZE 512 +#define USE_MAX_HW_SECTORS 1 #define USE_SEGMENT_BOUNDARY (PAGE_SIZE-1) #define USE_CONGESTED_FN @@ -1018,6 +1019,10 @@ static int if_switch(struct if_brick *brick) MARS_DBG("blk_queue_max_hw_segments()\n"); blk_queue_max_hw_segments(q, USE_MAX_HW_SEGMENTS); #endif +#ifdef USE_MAX_HW_SECTORS + MARS_DBG("blk_queue_max_hw_sectors()\n"); + blk_queue_max_hw_sectors(q, USE_MAX_HW_SECTORS); +#endif #ifdef USE_MAX_SEGMENT_SIZE MARS_DBG("blk_queue_max_segment_size()\n"); blk_queue_max_segment_size(q, USE_MAX_SEGMENT_SIZE);