Re: [PATCH v2 17/32] arm: define __smp_xxx
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
- Subject: Re: [PATCH v2 17/32] arm: define __smp_xxx
- From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
- Date: Mon, 4 Jan 2016 14:36:58 +0100
- Cc: Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Arnd Bergmann <arnd@xxxxxxxx>, linux-arch@xxxxxxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, David Miller <davem@xxxxxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-metag@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, x86@xxxxxxxxxx, user-mode-linux-devel@xxxxxxxxxxxxxxxxxxxxx, adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, Ingo Molnar <mingo@xxxxxxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, Andrey Konovalov <andreyknvl@xxxxxxxxxx>
- In-reply-to: <20160103110158-mutt-send-email-mst@redhat.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1451572003-2440-1-git-send-email-mst@redhat.com> <1451572003-2440-18-git-send-email-mst@redhat.com> <20160102112438.GU8644@n2100.arm.linux.org.uk> <20160103110158-mutt-send-email-mst@redhat.com>
- User-agent: Mutt/1.5.21 (2012-12-30)
On Sun, Jan 03, 2016 at 11:12:44AM +0200, Michael S. Tsirkin wrote:
> On Sat, Jan 02, 2016 at 11:24:38AM +0000, Russell King - ARM Linux wrote:
> > My only concern is that it gives people an additional handle onto a
> > "new" set of barriers - just because they're prefixed with __*
> > unfortunately doesn't stop anyone from using it (been there with
> > other arch stuff before.)
> >
> > I wonder whether we should consider making the smp memory barriers
> > inline functions, so these __smp_xxx() variants can be undef'd
> > afterwards, thereby preventing drivers getting their hands on these
> > new macros?
>
> That'd be tricky to do cleanly since asm-generic depends on
> ifndef to add generic variants where needed.
>
> But it would be possible to add a checkpatch test for this.
Wasn't the whole purpose of these things for 'drivers' (namely
virtio/xen hypervisor interaction) to use these?
And I suppose most of virtio would actually be modules, so you cannot do
what I did with preempt_enable_no_resched() either.
But yes, it would be good to limit the use of these things.
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]