From: Chuck Lever III <chuck.lever@oracle.com>
To: Neil Brown <neilb@suse.de>
Cc: Chuck Lever <cel@kernel.org>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
Liam Howlett <liam.howlett@oracle.com>,
Kees Cook <keescook@chromium.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
David Gow <davidgow@google.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v1 11/17] lib: add light-weight queuing mechanism.
Date: Thu, 14 Sep 2023 14:05:04 +0000 [thread overview]
Message-ID: <DB109932-C918-4F1E-BAF2-92D921238D54@oracle.com> (raw)
In-Reply-To: <20230911183025.5f808a70a62df79a3a1e349e@linux-foundation.org>
> On Sep 11, 2023, at 9:30 PM, Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Tue, 12 Sep 2023 09:19:59 +1000 "NeilBrown" <neilb@suse.de> wrote:
>
>> Plain old list_heads (which the code currently uses) require a spinlock
>> to be taken to insert something into the queue. As this is usually in
>> bh context, it needs to be a spin_lock_bh(). My understanding is that
>> the real-time developers don't much like us disabling bh. It isn't an
>> enormous win switching from a list_head list to a llist_node list, but
>> there are small gains such as object size reduction and less locking. I
>> particularly wanted an easy-to-use library facility that could be
>> plugged in to two different uses cases in the sunrpc code and there
>> didn't seem to be one. I could have written one using list_head, but
>> llist seemed a better fix. I think the code in sunrpc that uses this
>> lwq looks a lot neater after the conversion.
>
> Thanks. Could we please get words such as these into the changelog,
> describing why it was felt necessary to add more library code?
>
> And also into the .c file, to help people who are looking at it and
> wondering "can I use this". And to help reviewers who are wondering
> "could they have used Neil's thing".
Neil, are you planning to send along a replacement for 11/17,
or would you like me to fold the above into the patch description
I have now?
--
Chuck Lever
next prev parent reply other threads:[~2023-09-14 14:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 14:38 [PATCH v1 00/17] RPC service thread improvements Chuck Lever
2023-09-11 14:39 ` [PATCH v1 11/17] lib: add light-weight queuing mechanism Chuck Lever
2023-09-11 18:13 ` Andrew Morton
2023-09-11 20:30 ` Chuck Lever III
2023-09-11 21:04 ` Andrew Morton
2023-09-11 23:19 ` NeilBrown
2023-09-12 1:30 ` Andrew Morton
2023-09-14 14:05 ` Chuck Lever III [this message]
2023-09-15 1:51 ` NeilBrown
2023-09-15 2:22 ` [PATCH 11/17 SQUASH and replace commit message] " NeilBrown
2023-09-15 15:54 ` Chuck Lever III
2023-09-12 2:37 ` [PATCH v1 11/17] " Kees Cook
2023-09-12 4:08 ` NeilBrown
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=DB109932-C918-4F1E-BAF2-92D921238D54@oracle.com \
--to=chuck.lever@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=cel@kernel.org \
--cc=davidgow@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=keescook@chromium.org \
--cc=liam.howlett@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
/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
all inboxes | Powered by JetHome®