Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3535696ybt; Tue, 23 Jun 2020 04:54:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvzydvdv0H/EpVy2Asj3A5yCLBmsGihpazz+hapucN9s7fPSHTtLbvF3eRNdWqtsUU48Ex X-Received: by 2002:a17:907:429b:: with SMTP id ny19mr765836ejb.498.1592913249219; Tue, 23 Jun 2020 04:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592913249; cv=none; d=google.com; s=arc-20160816; b=eIr1t6QhQO08B/WzQmGxfLBfK9ru1g3CutHvCEXbkCZqKqBPsDFmJsl0EjLec1lrW6 PJmPB38JwSsXF9kwKt7DCQqtR+R0crOi9gekuQvkf+iAYDouRkLnK0bJykQb5shWDhF6 qr8AmMnQVFP0O7CnDdj439UD1doxD1uKRtVE1HPAOJNjMrhFquR7s5YW7ITSY/cWHXGg nM68dKrOc8PmX1M3D/F+PKssfZT6S85UgD3rUuaDIDA61KjlH8/eyIU00F++eEyq3bkB 0X83fjg9ExxbI5O6VWlp6WFVGc+bGvV20NXFfP2jyTfc+3MgPzIncP+EJkjnbKMVSo3y 0B3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Z/Huy68Pwxf32Nfn6eKXiIRObRmm5cbNz6j7vbrbgxc=; b=WWeU4lZmTdFFv1u2GTSHoCNJND9UR0McIRwVFz/GDptHPqSBMzo4YkkFaGxbTtdFrC pEcaHxbamz6KGfOMpAeIsdyrD2/xvnSRG+RVF5UMMbH1cy0cAcCH3d6GWg5vM+ZnQvFR kvh1HBUHOG2/rUgVcbgYb9y17towssdpLqb4LZIdTsIqj6lKDHCbSlPuej8RQODFV97p NJw/w8H51G1fYDEhGY+Mio7UDO4vcfHpiJ0Y1D1/1K1gQWdMIwKshjQEMM9nZ0HsfIwT E6O9nLbLnooBMluMaKR+u+xTi2ppKBDklxw38BKqZYFKA/XNjaUzQBEf+O4zZPxOOeaK 3mQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r29si743688edi.165.2020.06.23.04.53.46; Tue, 23 Jun 2020 04:54:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732592AbgFWLu4 (ORCPT + 99 others); Tue, 23 Jun 2020 07:50:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:57060 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732225AbgFWLuy (ORCPT ); Tue, 23 Jun 2020 07:50:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8372EAFB1; Tue, 23 Jun 2020 11:50:52 +0000 (UTC) Date: Tue, 23 Jun 2020 13:50:52 +0200 From: Daniel Wagner To: John Ogness Cc: Jens Axboe , Sebastian Andrzej Siewior , Thomas Gleixner , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] block: remove unnecessary ioc nested locking Message-ID: <20200623115052.comb37q22kjgzyen@beryllium.lan> References: <20200619151718.22338-1-john.ogness@linutronix.de> <20200619151718.22338-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200619151718.22338-2-john.ogness@linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 19, 2020 at 05:23:17PM +0206, John Ogness wrote: > The legacy CFQ IO scheduler could call put_io_context() in its exit_icq() > elevator callback. This led to a lockdep warning, which was fixed in > commit d8c66c5d5924 ("block: fix lockdep warning on io_context release > put_io_context()") by using a nested subclass for the ioc spinlock. > However, with commit f382fb0bcef4 ("block: remove legacy IO schedulers") > the CFQ IO scheduler no longer exists. > > The BFQ IO scheduler also implements the exit_icq() elevator callback but > does not call put_io_context(). > > The nested subclass for the ioc spinlock is no longer needed. Since it > existed as an exception and no longer applies, remove the nested subclass > usage. > > Signed-off-by: John Ogness As far I can tell, looks good. Reviewed-by: Daniel Wagner