From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [PATCH 1/2] IB/hfi1: Use preempt_{dis,en}able_nort() Date: Thu, 5 Oct 2017 11:55:39 -0400 Message-ID: <20171005115539.7daafb66@gandalf.local.home> References: <20171003154920.31566-1-acme@kernel.org> <20171003154920.31566-2-acme@kernel.org> <20171005141744.GC21185@jcartwri.amer.corp.natinst.com> <20171005153759.GG647@jcartwri.amer.corp.natinst.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Thomas Gleixner , Arnaldo Carvalho de Melo , , , , Arnaldo Carvalho de Melo , Clark Williams , Dean Luick , Dennis Dalessandro , Doug Ledford , Kaike Wan , Leon Romanovsky , , Peter Zijlstra , Sebastian Andrzej Siewior , Sebastian Sanchez To: Julia Cartwright Return-path: In-Reply-To: <20171005153759.GG647-ew3lsbMjNqt5wtABiV/Xjqyly8cj88Ttqxv4g6HH51o@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rt-users.vger.kernel.org On Thu, 5 Oct 2017 10:37:59 -0500 Julia Cartwright wrote: > On Thu, Oct 05, 2017 at 05:27:30PM +0200, Thomas Gleixner wrote: > > 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. > > Wouldn't we still trip the preempt check even with migration disabled? > In another thread I asked the same question: should the preemption > checks here be converted to migration-checks in RT? Is it a "preemption check"? Getting a cpu # should only care about migration. This isn't the same as a rcu_sched check is it? That does care about preemption. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html