Re: [PATCH] nvme: fix handling mapping failure

2021-01-19 Thread Marc Orr
On Tue, Jan 19, 2021 at 10:00 AM Christoph Hellwig wrote: > > On Tue, Jan 19, 2021 at 09:53:36AM -0800, Marc Orr wrote: > > This patch ensures that when `nvme_map_data()` fails to map the > > addresses in a scatter/gather list: > > > > * The addresses are not incorrectly unmapped. The underlying

[PATCH] nvme: fix handling mapping failure

2021-01-19 Thread Marc Orr
This patch ensures that when `nvme_map_data()` fails to map the addresses in a scatter/gather list: * The addresses are not incorrectly unmapped. The underlying scatter/gather code unmaps the addresses after detecting a failure. Thus, unmapping them again in the driver is a bug. * The DMA pool

Re: [PATCH] nvme: fix handling mapping failure

2021-01-19 Thread Christoph Hellwig
On Tue, Jan 19, 2021 at 09:53:36AM -0800, Marc Orr wrote: > This patch ensures that when `nvme_map_data()` fails to map the > addresses in a scatter/gather list: > > * The addresses are not incorrectly unmapped. The underlying > scatter/gather code unmaps the addresses after detecting a failure.