From: Ingo Molnar <mingo@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] sched.h split-up
Date: Wed, 8 Mar 2017 18:24:33 +0100 [thread overview]
Message-ID: <20170308172433.GB3301@gmail.com> (raw)
In-Reply-To: <CA+55aFwaVo2-Q-23Fq25vfmiGr620HqZYwuvPyUvR953MgaV=w@mail.gmail.com>
* Linus Torvalds <torvalds@linux-foundation.org> wrote:
> On Tue, Mar 7, 2017 at 3:33 PM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> > But as mentioned - this is untested. It seems to build, and it looks
> > "ObviouslyCorrect(tm)", but I didn't actually try to boot it.
>
> Well, it boots, but it's not like there are all that many users of the
> wait_event_interruptible*_locked*() interfaces, so it's dubious that I
> actually exercised the changes all that much (if at all).
>
> Of course, that's just more reason to *not* have it be some big macro
> expansion in a header file that requires other includes. Basically,
> this interface isn't worth the header inclusion pain.
>
> And no, I didn't try to see how many
>
> #include <linux/sched/signal.h>
>
> I could try to remove with this.
>
> But I *did* verify that I could now build that fs/overlayfs/util.c
> file with that #include removed.
>
> That's the case that caused a semantic merge issue for me - but I
> don't know how many others Ingo added as part of the split-up.
I suspect wait_event_hrtimeout*() has a similar conceptual problem with
linux/hrtimer.h, because it uses hrtimer APIs but doesn't include the header - but
fortunately that API variant does not appear to be used much at the moment: only
fs/aio.c uses wait_event_interruptible_hrtimeout(), but it includes sched.h which
includes hrtimer.h.
So Ack on your patch.
Also, to be honest I'm also not looking forward to converting 20+ wait_event*()
macros to a fragile state machine, so I wouldn't mind it if your patch was the
final solution to this problem! ;-)
Thanks,
Ingo
next prev parent reply other threads:[~2017-03-08 17:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 1:36 Ingo Molnar
2017-03-03 20:13 ` Linus Torvalds
2017-03-04 7:30 ` Ingo Molnar
2017-03-07 23:33 ` Linus Torvalds
2017-03-08 0:04 ` Linus Torvalds
2017-03-08 17:24 ` Ingo Molnar [this message]
2017-03-08 8:37 ` [RFC PATCH] sched/wait: Introduce new, more compact wait_event*() primitives Ingo Molnar
2017-03-08 9:17 ` [RFC PATCH] sched/wait: Add <linux/sched/signal.h> dependency for now Ingo Molnar
2017-03-08 10:11 ` [PATCH -v2] " Ingo Molnar
2017-03-08 11:55 ` [RFC PATCH] sched/wait: Introduce new, more compact wait_event*() primitives Ingo Molnar
2017-03-08 12:10 ` [RFC PATCH, -v2] " Ingo Molnar
2017-03-09 16:25 ` Peter Zijlstra
2017-03-08 16:37 ` [RFC PATCH] " Linus Torvalds
2017-03-08 17:16 ` Ingo Molnar
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=20170308172433.GB3301@gmail.com \
--to=mingo@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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
Powered by JetHome