Re: [patch 13/13] signal/timer/event fds v9 - KAIO eventfd support example ...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Davide Libenzi <davidel@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>, Ingo Molnar <mingo@...>, Suparna Bhattacharya <suparna@...>, Zach Brown <zach.brown@...>, Benjamin LaHaise <bcrl@...>
Date: Sunday, April 1, 2007 - 4:11 pm

Davide Libenzi wrote:

  


There's an atomic op there (and another on the way out).  Probably on a 
busy cacheline.  Still it's probably lost in the noise.

Regardless of that, I think that specifying the fd per submission is 
wrong.  It feels like a setup thing that needs to be done once.  We 
shouldn't skimp on syscalls, especially on something as important as 
unifying the async event model.



I don't see how.  It's still per submission.  You could do it on the 
first iocb, but that's just adding warts to the API.

You could add an IO_CMD_BIND_EVENTFD, but that feels wrong too, as it 
isn't really an I/O command.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 13/13] signal/timer/event fds v9 - KAIO eventfd s..., Avi Kivity, (Sun Apr 1, 4:11 pm)