Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754055AbbHFTb0 (ORCPT ); Thu, 6 Aug 2015 15:31:26 -0400 Received: from smtprelay0071.hostedemail.com ([216.40.44.71]:33559 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752210AbbHFTbY (ORCPT ); Thu, 6 Aug 2015 15:31:24 -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:1183:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2692:2693:3138:3139:3140:3141:3142:3355:3622:3865:3866:3867:3868:3870:3871:3872:3874:4184:4470:5007:6119:6120:6261:7875:7903:10004:10400:10848:10967:11026:11232:11658:11914:12043:12296:12485:12517:12519:12663:12740:13161:13229:21060:21067:21080,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 X-HE-Tag: level85_462416d7b360f X-Filterd-Recvd-Size: 3618 Date: Thu, 6 Aug 2015 15:31:20 -0400 From: Steven Rostedt To: Paul Gortmaker Cc: Daniel Wagner , , , , , , Subject: Re: [RFC v0 0/3] Simple wait queue support Message-ID: <20150806153120.61186803@gandalf.local.home> In-Reply-To: <20150806192243.GD1342@windriver.com> References: <1438781448-10760-1-git-send-email-daniel.wagner@bmw-carit.de> <20150806192243.GD1342@windriver.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; 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: 2780 Lines: 69 On Thu, 6 Aug 2015 15:22:45 -0400 Paul Gortmaker wrote: > [[RFC v0 0/3] Simple wait queue support] On 05/08/2015 (Wed 15:30) Daniel Wagner wrote: > > > Hi, > > > > It's a while since the last attempt by Paul to get simple wait ready > > for mainline [1]. At the last realtime workshop it was discussed how > > the swait implementation could be made preempt aware. Peter posted an > > untested version of it here [2]. > > So, from memory, here are the issues or questions that need answers > before we can consider trying mainline IMO. > > 1) naming: do we keep the swait, do we try and morph complex wait users > into using cwait, or some mix of the two, or ... ? I would say keep swait for now. Convert a few major hitters to it to test it out. After a release or two, create a cwait, and start converting the complex waits to them. Then after a period of stability, convert the normal wait_queues to be implemented with swait, and remove the swait from the kernel. > > 2) placement: as I think I said before, the standalone files works for > the -rt patches because it is the lowest maintenance solution, but > IMO for mainline, the simple and complex versions should be right > beside each other so they can be easily contrasted and compared and > so any changes to one will naturally also flow to the other. I'm agnostic on this part. > > 3) barrier usage: we'd had some questions and patches in the past that > futz'd around with the use of barriers, and as a mainline requirement > we'd need someone to check, understand and document them all properly. Sounds like a plan. > > 4) poll_wait: currently it and poll_table_entry are both hard coupled > to wait_queue_head_t -- so any users of poll_wait are not eligible > for conversion to simple wait. (I just happened to notice that > recently.) A quick grep shows ~500 poll_wait users. Looks like a good candidate to test the cwait on :-) > > 5) the aforementioned "don't do an unbounded number of callbacks while > holding the raw lock" issue. > > We should solve #5 for -rt regardless; I wouldn't attempt to make a > new "for mainline" set again w/o some consensus on #1 and #2, and I > think it would take someone like peterz/paulmck/rostedt to do #3 > properly. I don't know if #4 is an issue we need to worry about > right away; probably not. And I'm sure I'll think of some other > issue five seconds after I hit send... > 5... 4... 3... 2... 1... (where's the other issue?) -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/