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

2020-07-05 Thread Chaitanya Kulkarni
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 Indeed we do call blk_rq_nr_phys_segments() in nvme_queue_rq

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

2020-07-02 Thread Baolin Wang
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 --- drivers/nvme/host/pci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/nvme/host/pci.c b