From: Randy Dunlap <rdunlap@infradead.org>
To: Luigi Rizzo <lrizzo@google.com>,
linux-kernel@vger.kernel.org, peterz@infradead.org,
axboe@kernel.dk, paulmck@kernel.org
Subject: Re: [PATCH] smp: add a best_effort version of smp_call_function_many()
Date: Mon, 19 Apr 2021 11:52:33 -0700 [thread overview]
Message-ID: <d7371d20-e2d8-c5d1-b59b-850d86bf7a83@infradead.org> (raw)
In-Reply-To: <20210419184455.2987243-1-lrizzo@google.com>
Hi--
On 4/19/21 11:44 AM, Luigi Rizzo wrote:
>
> Signed-off-by: Luigi Rizzo <lrizzo@google.com>
> ---
> include/linux/smp.h | 10 ++++++
> kernel/smp.c | 75 +++++++++++++++++++++++++++++++++++++--------
> 2 files changed, 72 insertions(+), 13 deletions(-)
>
> diff --git a/kernel/smp.c b/kernel/smp.c
> index aeb0adfa0606..75155875fadc 100644
> --- a/kernel/smp.c
> +++ b/kernel/smp.c
> @@ -693,8 +715,32 @@ static void smp_call_function_many_cond(const struct cpumask *mask,
> csd_lock_wait(csd);
> }
> }
> + return busy ? cfd->cpumask : NULL;
> }
>
> +/**
> + * Extended version of smp_call_function_many(). Same constraints.
> + * @mode == 0 same as wait = false, returns 0;
> + * @mode == 1 same as wait = true, returns 0;
> + * @mode = SMP_CFM_BEST_EFFORT: skips CPUs with previous pending requests,
> + * returns 0 and *mask unmodified if no CPUs are skipped,
> + * -EBUSY if CPUs are skipped, and *mask is the set of skipped CPUs
Please convert those comments to real kernel-doc format.
(Documentation/doc-guide/kernel-doc.rst)
> + */
> +int __smp_call_function_many(struct cpumask *mask, smp_call_func_t func,
> + void *info, int mode)
> +{
thanks.
--
~Randy
next prev parent reply other threads:[~2021-04-19 18:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-19 18:44 Luigi Rizzo
2021-04-19 18:52 ` Randy Dunlap [this message]
2021-04-19 19:17 ` Peter Zijlstra
2021-04-19 21:07 ` Luigi Rizzo
2021-04-20 9:13 ` Peter Zijlstra
2021-04-20 10:41 ` Luigi Rizzo
2021-04-20 13:31 ` Peter Zijlstra
2021-04-20 14:40 ` Luigi Rizzo
2021-04-19 22:22 ` kernel test robot
2021-04-20 1:38 ` kernel test robot
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=d7371d20-e2d8-c5d1-b59b-850d86bf7a83@infradead.org \
--to=rdunlap@infradead.org \
--cc=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=lrizzo@google.com \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.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
all inboxes | Powered by JetHome®