public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* wfcqueue (in Userspace RCU) for Linux kernel (for epoll)
@ 2013-03-11 19:35 Eric Wong
  2013-03-11 21:25 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2013-03-11 19:35 UTC (permalink / raw)
  To: Mathieu Desnoyers, Lai Jiangshan; +Cc: linux-kernel, Davide Libenzi

Hi, I'm looking to reduce contention for the ep->lock spin lock in epoll.

I came across wfcqueue in Userspace RCU and am wondering if there's any
reason (other that lack of developer time/users) it hasn't been adapted
for the Linux kernel.

I'd be happy to do the work if it's suitable (and omit parts which
may not be, such as busy wait).

Using a mutex lock (while in process context) for dequeue works for
epoll.  I mainly want a lock-free enqueue for ep_poll_callback since
that may be called in IRQ context.

I suppose I can also use the llist LIFO in ep_poll_callback and
reverse that while in process context, too...


ref: http://git.lttng.org/userspace-rcu.git

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-11 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 19:35 wfcqueue (in Userspace RCU) for Linux kernel (for epoll) Eric Wong
2013-03-11 21:25 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox