mirror of
https://github.com/schoebel/mars
synced 2025-01-18 05:11:35 +00:00
if: use blk_queue_max_hw_sectors()
This commit is contained in:
parent
4f008ca001
commit
0db016a317
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user