Re: [PATCH RT 1/2 v2] x86: Do not disable preemption in int3 on 32bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
- Subject: Re: [PATCH RT 1/2 v2] x86: Do not disable preemption in int3 on 32bit
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Thu, 26 Jan 2012 09:21:59 -0500
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-rt-users <linux-rt-users@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Carsten Emde <C.Emde@xxxxxxxxx>, John Kacur <jkacur@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Alexander van Heukelum <heukelum@xxxxxxxxxxx>, Andi Kleen <ak@xxxxxxxxxxxxxxx>, Oleg Nesterov <oleg@xxxxxxxxxx>, Clark Williams <williams@xxxxxxxxxx>, Luis Goncalves <lgoncalv@xxxxxxxxxx>
- In-reply-to: <4F215C5E.4090006@hitachi.com>
- References: <20120125143231.196670014@goodmis.org> <20120125143520.086175333@goodmis.org> <4F211126.1090204@hitachi.com> <1327584811.22710.80.camel@gandalf.stny.rr.com> <4F215C5E.4090006@hitachi.com>
On Thu, 2012-01-26 at 22:59 +0900, Masami Hiramatsu wrote:
> Better. If the functions are only for signaling, how
> about using the "signal" in name? :)
>
> conditional_sti/cli_for_signal()
I don't think they are only for signals. The conditional_sti/cli is for
all callers of do_trap(). But those callers that run on an IST stack use
the preempt_conditional_sti/cli() code. Perhaps we should call it:
conditional_sti/cli_ist() ?
Actually, I think this is the best name. The "preempt_" one, didn't give
any annotation about why it was disabling preemption. It was done
because the stack is on the IST and we can not schedule out. Thus, if we
add the "_ist()" to it, not only does it annotate why this call is
special, but also allows x86_32, which does not have an IST, not to have
to disable preemption.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[RT Stable]
[Kernel Newbies]
[Share Photos]
[IDE]
[Security]
[Git]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux ATA RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]