if: use blk_queue_max_hw_sectors()

This commit is contained in:
Thomas Schoebel-Theuer 2019-01-10 07:25:27 +01:00
parent 4f008ca001
commit 0db016a317

View File

@ -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);