Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-09-08 Thread Shaohua Li
72d607814d9e808d05765 Mon Sep 17 00:00:00 2001 Message-Id: <b5cdd3c14b0589e5d5a72d607814d9e808d05765.1441771848.git.s...@fb.com> From: Shaohua Li <s...@fb.com> Date: Thu, 30 Jul 2015 16:24:43 -0700 Subject: [PATCH] x86: serialize LVTT and TSC_DEADLINE write We saw a strange issue with local APIC timer. Some random CPU d

Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-08-05 Thread Shaohua Li
On Wed, Aug 05, 2015 at 10:44:24AM +0200, Ingo Molnar wrote: * Shaohua Li s...@fb.com wrote: On Sun, Aug 02, 2015 at 09:41:08PM +0200, Thomas Gleixner wrote: On Sun, 2 Aug 2015, Shaohua Li wrote: On Sat, Aug 01, 2015 at 12:10:41PM +0200, Thomas Gleixner wrote: On Fri, 31 Jul

Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-08-03 Thread Shaohua Li
On Sun, Aug 02, 2015 at 09:41:08PM +0200, Thomas Gleixner wrote: On Sun, 2 Aug 2015, Shaohua Li wrote: On Sat, Aug 01, 2015 at 12:10:41PM +0200, Thomas Gleixner wrote: On Fri, 31 Jul 2015, Shaohua Li wrote: @@ -336,6 +336,22 @@ static void __setup_APIC_LVTT(unsigned int clocks

Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-08-02 Thread Shaohua Li
On Sat, Aug 01, 2015 at 12:10:41PM +0200, Thomas Gleixner wrote: On Fri, 31 Jul 2015, Shaohua Li wrote: @@ -336,6 +336,22 @@ static void __setup_APIC_LVTT(unsigned int clocks, int oneshot, int irqen) apic_write(APIC_LVTT, lvtt_value); if (lvtt_value

[PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-07-31 Thread Shaohua Li
...@linutronix.de Cc: H. Peter Anvin h...@zytor.com Cc: Ingo Molnar mi...@kernel.org Cc: stable@vger.kernel.org v3.7+ Signed-off-by: Shaohua Li s...@fb.com --- arch/x86/kernel/apic/apic.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic

Re: [PATCH 1/2] block: Move general unplug callback function from md/raid to blk-core

2012-06-05 Thread Shaohua Li
2012/6/5 tao@emc.com: If you ever tried to implement unplug function in umem, you would find the code was almost identical as in dm/raid driver. For other components which also need such unplug mechanism, it will much more convenient to have such facilities. It's just several lines of

Re: [PATCH 1/2] block: Move general unplug callback function from md/raid to blk-core

2012-06-04 Thread Shaohua Li
On Mon, Jun 04, 2012 at 10:41:50AM -0400, Tao Guo wrote: Other components may also require an unplug callback, so move this function from md/raid to block generic layer. I saw no point this should be generic code, for example, why blk_plug_cb only handles only one request_queue? If umem needs