All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: linux-kernel@vger.kernel.org, Davide Libenzi <davidel@xmailserver.org>
Subject: wfcqueue (in Userspace RCU) for Linux kernel (for epoll)
Date: Mon, 11 Mar 2013 19:35:41 +0000	[thread overview]
Message-ID: <20130311193541.GA11149@dcvr.yhbt.net> (raw)

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

             reply	other threads:[~2013-03-11 19:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 19:35 Eric Wong [this message]
2013-03-11 21:25 ` wfcqueue (in Userspace RCU) for Linux kernel (for epoll) Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130311193541.GA11149@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=davidel@xmailserver.org \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.