Re: [ISSUE] The time cost of IOSQE_IO_LINK

Peter Zijlstra
2020-02-18T15:38:34Z

On Tue, Feb 18, 2020 at 04:07:45PM +0100, Oleg Nesterov wrote:
> On 02/18, Oleg Nesterov wrote:
> >
> > otherwise I think this is correct, but how about the patch below?
> > Then this code can be changed to use try_cmpxchg().
>
> You have already sent the patch which adds the generic try_cmpxchg,
> so the patch below can be trivially adapted.
>
> But I'd prefer another change, I think both task_work_add() and
> task_work_cancel() can use try_cmpxchg() too.

Yeah, I'll go change the lot, but maybe after Jens' patches, otherwise
we're just creating merge conflicts.