Re: [PATCH v2] ata-sff: always map page before data transfer

From: Tejun Heo
Date: Fri May 05 2017 - 12:16:25 EST


On Thu, May 04, 2017 at 04:15:51PM -0600, Tycho Andersen wrote:
> The XPFO [1] patchset may unmap pages from physmap if they happened to be
> destined for userspace. If such a page is unmapped, it needs to be
> remapped. Rather than test if a page is in the highmem/xpfo unmapped state,
> Christoph suggested [2] that we simply always map the page.
>
> v2: * drop comment about bounce buffer
> * don't save IRQs before kmap/unmap
> * formatting
>
> Suggested-by: Christoph Hellwig <hch@xxxxxxxxxxxxx>
> Signed-off-by: Tycho Andersen <tycho@xxxxxxxxxx>
> CC: Juerg Haefliger <juerg.haefliger@xxxxxxx>
> CC: Tejun Heo <tj@xxxxxxxxxx>
>
> [1]: https://lkml.org/lkml/2016/11/4/245
> [2]: https://lkml.org/lkml/2016/11/4/253

Yeah, it's a nice cleanup.

Applied to libata/for-4.13.

Thanks.

--
tejun