Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4129257ybg; Fri, 25 Oct 2019 13:47:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2y7y9XL5yrcw4RnwDAhFzDQXx6sWjAsuDXwj/ndqxZiVIi9tuGo4DDc95YVf0py2FatVv X-Received: by 2002:a50:ee12:: with SMTP id g18mr6133744eds.114.1572036460829; Fri, 25 Oct 2019 13:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036460; cv=none; d=google.com; s=arc-20160816; b=AIFA8fxc6M7P3SbvniRC3m1SaMo7f9J0OoxCWPB9uGZGDzRIKqo1kn7XZ+l80dHetZ M880jZcks/lbkaP6CEpCjKh8Bvyh271S7txBdxUkglNS2XlD2NE8dS2WnSDcHuMEmbT6 ZnUMoB4nnYj80m9cXWKS+F9cd3t4wWEJTvl1h02OE4lWFQHd49G+SS74mzvPQZvIilly J30IXpGTDKxhSfBKRD2nAPd1oULBGGsI2VkakLDT4vrRigW4hPG2c3Tpvxu+jVrfNimv iixBIXwdk8bGTWTKfPW5ghB/7cVBW4Mgdkdd4d10tARqJZhNkFw1alPn7q7pFw05B1au 5ZVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KARA6Zpm/SzKTf7o/beZkgT6jiFjmpj68VSP63MONbI=; b=YSpjHZlxPVyq1BmKhRbNTGoM4aN4jS0G3MoR9Dhsos7v2LztBI1YrxYTdLP+tKo6e3 S2oyaifqj6Xt+nLfp6spSeVIwUqF8URZUPRSWYhrLS2HPPRr+S/mKPtVSbGqJ/B2ywUn RQp77RjCFzV8n4devM+Cw3y38/B6pczKO24RVW4CVprY+sXtaF1mNdrIiMeUkyiHaO9Z eKESEswIty+Q7nHdBIDgqITmka3l2MVJ5/InNuC8VLli8/fGI8p2Of3pKdlZk+YHPMnb r2VMmQNuc+deFGgd/o/AlPx6qRaWQpMAM4P/8kgFJCwZnfuXSdt4MHq+PtLNPFjdS2Bu iSvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z31si2032410ede.236.2019.10.25.13.47.16; Fri, 25 Oct 2019 13:47:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409978AbfJYR3N (ORCPT + 99 others); Fri, 25 Oct 2019 13:29:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:33728 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388862AbfJYR3M (ORCPT ); Fri, 25 Oct 2019 13:29:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9CA70AEFF; Fri, 25 Oct 2019 17:29:11 +0000 (UTC) Date: Fri, 25 Oct 2019 10:27:49 -0700 From: Davidlohr Bueso To: Peter Zijlstra Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH -tip] locking/mutex: Complain upon api misuse wrt interrupt context Message-ID: <20191025172749.ugi3hcehqbldit7i@linux-p48b> References: <20191025033634.3330-1-dave@stgolabs.net> <20191025081037.GF4131@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20191025081037.GF4131@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Oct 2019, Peter Zijlstra wrote: >No real objection, but should not lockdep already complain about this? >__mutex_unlock_slowpath() takes ->wait_lock irq-unsafe, so then using it >from an IRQ should generate an insta IRQ inversion report. But we still have the unlock fastpath and the trylock scenarios which don't take locks. Thanks, davidlohr