[PATCH 3/5] nvme-pci: Remove redundant segment validation

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Sun Jul 5 22:23:40 EDT 2020


On 7/2/20 7:54 PM, Baolin Wang wrote:
> We've validated the segment counts before calling nvme_map_data(),
> so there is no need to validate again in nvme_pci_use_sgls() only
> called from nvme_map_data().
> 
> Signed-off-by: Baolin Wang<baolin.wang at linux.alibaba.com>

Indeed we do call blk_rq_nr_phys_segments() in nvme_queue_rq().

Looks good to me.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>



More information about the Linux-nvme mailing list