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

From: Chaitanya Kulkarni
Date: Sun Jul 05 2020 - 22:24:02 EST


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@xxxxxxxxxxxxxxxxx>

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

Looks good to me.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>