public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat•com>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios•com>
Cc: Peter Zijlstra <peterz@infradead•org>,
	Jessica Yu <jeyu@kernel•org>,
	linux-kernel <linux-kernel@vger•kernel.org>,
	Josh Poimboeuf <jpoimboe@redhat•com>,
	jikos@kernel•org, mbenes@suse•cz, Petr Mladek <pmladek@suse•com>,
	Alexei Starovoitov <ast@kernel•org>,
	Daniel Borkmann <daniel@iogearbox•net>,
	Andrew Morton <akpm@linux-foundation•org>,
	Robert Richter <rric@kernel•org>, rostedt <rostedt@goodmis•org>,
	Ingo Molnar <mingo@redhat•com>, Martin KaFai Lau <kafai@fb•com>,
	Song Liu <songliubraving@fb•com>, Yonghong Song <yhs@fb•com>,
	paulmck <paulmck@linux•ibm.com>,
	"Joel Fernandes, Google" <joel@joelfernandes•org>,
	Ard Biesheuvel <ard.biesheuvel@linaro•org>,
	Thomas Gleixner <tglx@linutronix•de>,
	oprofile-list@lists•sf.net, netdev <netdev@vger•kernel.org>,
	bpf@vger•kernel.org
Subject: Re: [PATCH 2/3] module: Fix up module_notifier return values.
Date: Mon, 24 Jun 2019 16:58:10 -0400	[thread overview]
Message-ID: <20190624205810.GD26422@redhat.com> (raw)
In-Reply-To: <320564860.243.1561384864186.JavaMail.zimbra@efficios.com>

Hi -

> > While auditing all module notifiers I noticed a whole bunch of fail
> > wrt the return value. Notifiers have a 'special' return semantics.

From peterz's comments, the patches, it's not obvious to me how one is
to choose between 0 (NOTIFY_DONE) and 1 (NOTIFY_OK) in the case of a
routine success.

> [...]
> I have a similar erroneous module notifier return value pattern
> in lttng-modules as well. I'll go fix it right away. CCing
> Frank Eigler from SystemTAP which AFAIK use a copy of
> lttng-tracepoint.c in their project, which should be fixed
> as well. I'm pasting the lttng-modules fix below.

Sure, following suit.  Thanks.

- FChE

  parent reply	other threads:[~2019-06-24 20:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190624091843.859714294@infradead.org>
2019-06-24  9:18 ` [PATCH 2/3] module: Fix up module_notifier return values Peter Zijlstra
2019-06-24 14:01   ` Mathieu Desnoyers
2019-06-24 15:52     ` Joel Fernandes
2019-06-24 17:50       ` Mathieu Desnoyers
2019-06-24 20:58     ` Frank Ch. Eigler [this message]
2019-06-25  7:42       ` Peter Zijlstra
2019-07-04 12:48         ` Robert Richter
2019-07-04 12:34   ` Robert Richter
2019-06-24  9:18 ` [PATCH 3/3] module: Properly propagate MODULE_STATE_COMING failure Peter Zijlstra
2019-06-24 11:07   ` Peter Zijlstra

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=20190624205810.GD26422@redhat.com \
    --to=fche@redhat$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=ard.biesheuvel@linaro$(echo .)org \
    --cc=ast@kernel$(echo .)org \
    --cc=bpf@vger$(echo .)kernel.org \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=jeyu@kernel$(echo .)org \
    --cc=jikos@kernel$(echo .)org \
    --cc=joel@joelfernandes$(echo .)org \
    --cc=jpoimboe@redhat$(echo .)com \
    --cc=kafai@fb$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=mathieu.desnoyers@efficios$(echo .)com \
    --cc=mbenes@suse$(echo .)cz \
    --cc=mingo@redhat$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=oprofile-list@lists$(echo .)sf.net \
    --cc=paulmck@linux$(echo .)ibm.com \
    --cc=peterz@infradead$(echo .)org \
    --cc=pmladek@suse$(echo .)com \
    --cc=rostedt@goodmis$(echo .)org \
    --cc=rric@kernel$(echo .)org \
    --cc=songliubraving@fb$(echo .)com \
    --cc=tglx@linutronix$(echo .)de \
    --cc=yhs@fb$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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