From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbdJEP1k (ORCPT ); Thu, 5 Oct 2017 11:27:40 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:34653 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbdJEP1j (ORCPT ); Thu, 5 Oct 2017 11:27:39 -0400 Date: Thu, 5 Oct 2017 17:27:30 +0200 (CEST) From: Thomas Gleixner To: Julia Cartwright cc: Arnaldo Carvalho de Melo , bigeasy@linutronix.de, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Clark Williams , Dean Luick , Dennis Dalessandro , Doug Ledford , Kaike Wan , Leon Romanovsky , linux-rdma@vger.kernel.org, Peter Zijlstra , Sebastian Andrzej Siewior , Sebastian Sanchez , Steven Rostedt Subject: Re: [PATCH 1/2] IB/hfi1: Use preempt_{dis,en}able_nort() In-Reply-To: <20171005141744.GC21185@jcartwri.amer.corp.natinst.com> Message-ID: References: <20171003154920.31566-1-acme@kernel.org> <20171003154920.31566-2-acme@kernel.org> <20171005141744.GC21185@jcartwri.amer.corp.natinst.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Oct 2017, Julia Cartwright wrote: > On Tue, Oct 03, 2017 at 12:49:19PM -0300, Arnaldo Carvalho de Melo wrote: > > - preempt_disable(); > > + preempt_disable_nort(); > > this_cpu_inc(*sc->buffers_allocated); > > Have you tried this on RT w/ CONFIG_DEBUG_PREEMPT? I believe that the > this_cpu_* operations perform a preemption check, which we'd trip. Good point. Changing this to migrate_disable() would do the trick. Thanks, tglx