From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaldo Carvalho de Melo Subject: Re: [PATCH] target: Use WARNON_NON_RT(!irqs_disabled()) Date: Thu, 22 Mar 2018 06:37:45 -0300 Message-ID: <20180322093745.GC4229@kernel.org> References: <20180321153854.GB24312@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Peter Zijlstra , Sebastian Andrzej Siewior , "Nicholas A. Bellinger" , Thomas Gleixner , LKML , linux-rt-users , Steven Rostedt , Linux SCSI List , Daniel Bristot de Oliveira , Luis Claudio =?iso-8859-1?Q?R=2E_Gon=E7alves?= , Clark Williams , target-devel To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org Em Wed, Mar 21, 2018 at 11:43:58AM -0700, Linus Torvalds escreveu: > [ Adding PeterZ to participants due to query about lockdep_assert() ] > > On Wed, Mar 21, 2018 at 8:38 AM, Arnaldo Carvalho de Melo > wrote: > > > > assert_spin_locked(&cmd->t_state_lock); > > - WARN_ON_ONCE(!irqs_disabled()); > > + WARN_ON_ONCE_NONRT(!irqs_disabled()); > > Ugh. > > Can't we just replace both of those with a lockdep annotation? Huh, even better, when that feature gets finished (tglx said it was being developed, not there yet tho) it'll allow further reduction of the PREEMPT_RT_FULL patchkit. - Arnaldo