Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932854AbcDHT2K (ORCPT ); Fri, 8 Apr 2016 15:28:10 -0400 Received: from smtprelay0048.hostedemail.com ([216.40.44.48]:41345 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932742AbcDHT2I (ORCPT ); Fri, 8 Apr 2016 15:28:08 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2692:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3872:3873:3874:5007:6119:6261:7875:7903:9010:10004:10400:10848:10967:11026:11232:11658:11914:12043:12050:12198:12296:12438:12517:12519:12663:12740:13069:13311:13357:13439:13618:14096:14097:14181:14659:14721:21080:21324:30022:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: spot92_635e44857201f X-Filterd-Recvd-Size: 2509 Date: Fri, 8 Apr 2016 15:28:01 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: xlpang@redhat.com, linux-kernel@vger.kernel.org, Juri Lelli , Ingo Molnar , Thomas Gleixner Subject: Re: [PATCH] sched/deadline/rtmutex: Fix a PI crash for deadline tasks Message-ID: <20160408152801.3f0b1c33@gandalf.local.home> In-Reply-To: <20160408151542.24328fd6@gandalf.local.home> References: <56FE685E.6080001@redhat.com> <19912883-8AB1-4DFD-A0E1-F23057785243@infradead.org> <56FE78E0.5060504@redhat.com> <20160401215143.GB2906@worktop> <57037974.1020002@redhat.com> <20160405091954.GI3448@twins.programming.kicks-ass.net> <20160405092954.GC24771@twins.programming.kicks-ass.net> <20160408122510.15978179@gandalf.local.home> <20160408173835.GC1087@worktop> <20160408145055.13c98a75@gandalf.local.home> <20160408185916.GQ3448@twins.programming.kicks-ass.net> <20160408151542.24328fd6@gandalf.local.home> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1068 Lines: 25 On Fri, 8 Apr 2016 15:15:42 -0400 Steven Rostedt wrote: > From what I understand, the slowfn() modifies the task pi_list (or > rbtree, as it is today). As this is an unlock, the task being woken > (the next one to grab the lock) is removed from the previous task's pi > list. > > In rt_mutex_adjust_prio(current) I see it simply grabs current's > pi_lock and calls __rt_mutex_adjust_prio(current). This calls > rt_mutex_getprio(current) which returns current's normal prio if it > doesn't have any pi waiters, or it looks at the top pi waiter on the > tasks list and returns that. Which wouldn't be the task on wake_q, > otherwise we wouldn't be deboosting in the first place. > OK, I now see that the your previous patch is changing what I'm looking at :-) This is what happens when you go away and try to catch up on email and not read the emails by threads. I see the rt_mutex_adjust_prio() is being changed. I'll go back and look at your previous patch (as I looked at that while traveling and didn't think too hard about it). -- Steve