From: "Dmitriy V\\'jukov" <dvyukov@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: SRCU: Number of outstanding callbacks
Date: Wed, 11 Mar 2009 17:13:47 +0000 (UTC) [thread overview]
Message-ID: <loom.20090311T151357-544@post.gmane.org> (raw)
In-Reply-To: 20090311144327.GA7086@linux.vnet.ibm.com
Paul E. McKenney <paulmck <at> linux.vnet.ibm.com> writes:
> The short answer is, as you guessed, because it is not (yet) worth doing.
> This is at least in part because SRCU is not heavily used.
>
> The philosophy behind the limitation is that the memory overhead of
> the blocks is a small fraction of the memory required to represent
> a thread. As you say, there are a number of other strategies that can
> be pursued, but the current strategy has the advantage of simplicity.
> In particular, the current strategy does not require a failure return
> from an as-yet-nonexistent call_srcu(). Handling such a failure return
> is certainly possible, but someone would have to show me an extremely
> good reason for putting up with this.
Yes, I've noticed the extreme simplicity of the current synchronize_srcu().
As for failure return from call_srcu(), I think it's possible to just call
synchronize_srcu() from inside call_srcu() if the latter encounters any errors.
Anyway call_srcu() will be "sometimes blocking" because of the limit on number
of outstanding callbacks, so this must not be a problem.
--
Best regards,
Dmitriy V'jukov
prev parent reply other threads:[~2009-03-11 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 10:48 SRCU: Number of outstanding callbacks Dmitriy V'jukov
2009-03-11 14:43 ` Paul E. McKenney
2009-03-11 17:13 ` Dmitriy V\'jukov [this message]
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=loom.20090311T151357-544@post.gmane.org \
--to=dvyukov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox