On 13/01/2016 10:56, Nicholas A. Bellinger wrote: > Nope, or at least not in iblock_configure_device() code. > > The MAXIMUM TRANSFER LENGTH in block limits EVPD for IBLOCK is > queue_max_hw_sectors() * bdev_logical_block_size, and > queue_max_segments() is not considered atm. > > Is there a case where MTL needs to be the smaller of the two..? Given enough fragmentation of the t_data_sg, the actual MTL will be queue_max_segments() * PAGE_SIZE bytes. I think it's a bug in LIO that target_alloc_sgl always does order-0 allocation. But until that is fixed, LIO will be susceptible to this problem, at least for PSCSI backends (for BLOCK and FILEIO, the block and VFS layers can always split one I/O down to multiple requests). Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html