Re: [PATCHv4 1/4] block: bio-integrity: directly map user buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 29, 2023 at 08:48:41PM +0530, Kanchan Joshi wrote:
> On 11/29/2023 3:57 AM, Keith Busch wrote:
> > If the user address can't directly be used for reason, like too many
> > segments or address unalignement, fallback to a copy of the user vec
> > while keeping the user address pinned for the IO duration so that it
> > can safely be copied on completion in any process context.
> 
> The pinning requirement is only for read. But code keeps user-memory 
> pinned for write too. Is there any reason?

It just makes the completion simpler. I'll split the cases so we unpin
on writes after the copy during setup.




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux