Re: [PATCH v8 0/1] scsi: sas: fix mkfs.xfs failure due to bogus optimal_io_size
From: Martin K. Petersen
Date: Mon Jun 08 2026 - 21:43:41 EST
On Tue, 19 May 2026 16:52:32 +0300, Ionut Nechita (Wind River) wrote:
> From: Ionut Nechita <ionut.nechita@xxxxxxxxxxxxx>
>
> v8 (per Christoph Hellwig's review of v7):
> - Removed the dma_dev->dma_mask guard — dma_opt_mapping_size() and
> dma_max_mapping_size() both return SIZE_MAX when no DMA ops are
> present, so the opt >= max early-return already covers this case.
> - Added inline comments explaining each conditional in the helper.
>
> [...]
Applied to 7.2/scsi-queue, thanks!
[1/1] scsi: sas: skip opt_sectors when DMA reports no real optimization hint
https://git.kernel.org/mkp/scsi/c/be8fcd4a8217
--
Martin K. Petersen