From: "H. Peter Anvin" <hpa@zytor.com>
To: David Rientjes <rientjes@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Frederic Weisbecker <fweisbec@gmail.com>,
LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH 1/2] x86: Cleanup TIF value gaps in shift range
Date: Mon, 18 Oct 2010 16:23:15 -0700 [thread overview]
Message-ID: <4CBCD6E3.2020208@zytor.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1010181451030.18444@chino.kir.corp.google.com>
On 10/18/2010 03:00 PM, David Rientjes wrote:
>>
>> YES IT IS. In fact, it is completely and totally bananas bonkers.
>>
>> By not pushing for a proper maintainable ABI, you will have an
>> indefinite forward compatibility problem, and when predictably it
>> breaks, you'll complain. This is, however, backwards -- the right thing
>> would have been to say "I need this, this isn't available, I should add
>> a maintainable API and push it upstream", and perhaps add log parsing as
>> a backwards-compatibility solution.
>
> The problem is deciding what should be an ABI and what shouldn't an ABI
> when it isn't clear. It would be great if everything that is logged or
> shown to userspace would be part of an ABI and would be available no
> matter how much information is emitted to the log. That's not scalable,
> so we have to decide what userspace may depend on and design ABIs that
> provide that information in an extendable way that won't break or become
> obsoleted in the foreseeable future.
>
> Since we can't do that for everything and we have no idea what users will
> find to parse from the dmesg, I'm advocating that if a change is proposed,
> like was in this case with ti->flags, and someone has a usecase where the
> information isn't available in any other way, that they speak up and come
> up with a maintainable solution so that we've identified the parties
> involved and can change that log message if necessary. I only think that
> should be done, though, when there is a compelling reason for the change.
>
> I think that was done in this case by suggesting an alternative (printing,
> at minimum, "M" when a thread has TIF_MEMDIE set instead of the raw flag
> bits), but I don't think the change itself was compelling enough that it
> has to be done. That doesn't mean doing the change I suggested wasn't
> still appropriate, but at least it was known as a prerequisite before
> something like this should be merged.
Note: I have already said we shouldn't change TIF_ flags. The thing I'm
objecting to is that in very short order you have made multiple requests
for API-type stability for things that are explicitly for human
consumption, like dmesg and Sysrq information.
Expecting *anything* in dmesg to remain stable in any way is aggravated
insanity and completely unreasonable.
-hpa
next prev parent reply other threads:[~2010-10-18 23:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 20:35 [PATCH 1/2] x86: Cleanup TIF value gaps in shift range Frederic Weisbecker
2010-10-18 20:35 ` [PATCH 2/2] x86: Remove stale TIF_DEBUG Frederic Weisbecker
2010-10-18 22:12 ` [PATCH v2] " Frederic Weisbecker
2010-10-18 20:47 ` [PATCH 1/2] x86: Cleanup TIF value gaps in shift range David Rientjes
2010-10-18 21:23 ` Thomas Gleixner
2010-10-18 21:28 ` H. Peter Anvin
2010-10-18 21:36 ` David Rientjes
2010-10-18 21:43 ` H. Peter Anvin
2010-10-18 22:00 ` David Rientjes
2010-10-18 23:23 ` H. Peter Anvin [this message]
2010-10-18 21:30 ` David Rientjes
2010-10-18 20:48 ` H. Peter Anvin
2010-10-18 21:10 ` Frederic Weisbecker
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=4CBCD6E3.2020208@zytor.com \
--to=hpa@zytor.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rientjes@google.com \
--cc=tglx@linutronix.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