Re: [PATCH] io_uring/uring_cmd: push IRQ based completions through task_work

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

 



On 3/20/23 20:42, Jens Axboe wrote:
On 3/20/23 2:03?PM, Jens Axboe wrote:
On 3/20/23 9:06?AM, Kanchan Joshi wrote:
On Sun, Mar 19, 2023 at 8:51?PM Jens Axboe <axboe@xxxxxxxxx> wrote:

This is similar to what we do on the non-passthrough read/write side,
and helps take advantage of the completion batching we can do when we
post CQEs via task_work. On top of that, this avoids a uring_lock
grab/drop for every completion.

What we should do is to pass in "bool *locked" that we use for
normal tw. I'll prep a patch converting that locked into a structure.

I'd also argue it's better to use tw from commands directly
without a second callback. That would need a couple of helpers.

--
Pavel Begunkov



[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