From: Keith Busch <[email protected]> The dma_alignment becomes 511 anyway if the caller doesn't explicitly set it. But setting this default prevents the stacked device from requesting a lower value even if it can handle lower alignments.
Signed-off-by: Keith Busch <[email protected]> --- block/blk-settings.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-settings.c b/block/blk-settings.c index b38e94c85402a..2a7cb46973440 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -41,7 +41,6 @@ void blk_set_stacking_limits(struct queue_limits *lim) lim->physical_block_size = SECTOR_SIZE; lim->io_min = SECTOR_SIZE; lim->discard_granularity = SECTOR_SIZE; - lim->dma_alignment = SECTOR_SIZE - 1; lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK; /* Inherit limits from component devices */ -- 2.47.3
