[PATCH] nvme: Check hw sectors before setting chunk sectors

Martin K. Petersen martin.petersen at oracle.com
Thu Dec 14 19:45:50 PST 2017


Keith,

> Some devices with IDs matching the "stripe" quirk don't actually have
> this quirk, and don't have an MDTS value. When MDTS is not set, the
> driver sets the max sectors to UINT_MAX, which is not a power of 2,
> hitting a BUG_ON from blk_queue_chunk_sectors. This patch skips
> setting chunk sectors for such devices.

Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering



More information about the Linux-nvme mailing list