Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4021381pxb; Tue, 25 Jan 2022 01:35:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoqzN2vgqm+szU4ap3ugJnP6ZN9gc1KagZ6dLCjKTdhqvbWE2+AfKLkZUm1YkISIHcC1/7 X-Received: by 2002:a05:6a00:2387:b0:4c5:be67:902b with SMTP id f7-20020a056a00238700b004c5be67902bmr17596012pfc.21.1643103320279; Tue, 25 Jan 2022 01:35:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643103320; cv=none; d=google.com; s=arc-20160816; b=Uby9e3XKCDBHT0pYjVqIQ+6nq/cz7A/T1kFGmidYRpW0p9vbFE2UWZMM/jvqPidb0+ KDkJiX/3+BNLGHHzVv+L6ICM8WppJo99yTEmM9Uq7znAm0H7vGDCdL077xCZ0RbYV51S FFoZLLkProyXIJXnlWZvGMKh8WIYyNKZzoGeOayQI2K7BtDzmTAfd9f1/o1gzp8E58F3 8Z2RKw5lG9qkIdHvhnyUevnJflYs+a+sXHWsCW+ssW4CSBmVXJDExs8MOwJD/+cHxX0D akYFd0tYSys+h/gS0cyLlDDcqcPAbZ+c02cuO98rClfOgjeB8wq6P5Cv/NZoXcIaffy1 jE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=75fjvxkpcCo4jL8p3FdjfOk5GEVHgIS93fZ4qZc8bNA=; b=SydUFYegBlilxlzXhnfGJH5jvKUl4+fkDbWptuf9ctrrQN57zVXL+k4TJjT5UzBQnS cURg4XfrU16BUU8J0WDQkMpJQgnqD09uO0UW44TUogJJn/rf8SYzObA/GKxNrfQLYAF9 wgwG96ZwlODTDBl+Dp6lzhpzgpHpA44tnnH91pPdLD3vZs2e8mfEdn8quRVZ3fv+Vw0h o2Y5bBe7KOS1lACUrKmNxunen6E+BLhngwpMP4BCWmdtznlovp/Oe/fF+JEifXUOFPqq eUKBl24T0yb/sUdc38Z3DoMvkGz6Q3QqvNAiDVhqIKcwbV2h7A9MV93LdNdTY8heiduQ tQhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="b/iOn8Ho"; 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 y2si7119690plg.43.2022.01.25.01.35.08; Tue, 25 Jan 2022 01:35:20 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="b/iOn8Ho"; 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 S1452881AbiAYIu7 (ORCPT + 99 others); Tue, 25 Jan 2022 03:50:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1451896AbiAYIsO (ORCPT ); Tue, 25 Jan 2022 03:48:14 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E73C06E013; Mon, 24 Jan 2022 23:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=75fjvxkpcCo4jL8p3FdjfOk5GEVHgIS93fZ4qZc8bNA=; b=b/iOn8Hoyg1wUS7Qh2nzBKg7np 6I3neoUO8FFrYnLwuI7F5FFB6D/zq/RE9H+RYoI5cJXZ9EoEJSEF5ZeNr2ZGqb46CIrAiOtQQ+sfZ zhUdDlgEsHqyrNffazit08rwIRlViWqKuGaZZ2iwEtkCpVWyed/VByG0wf8bVjwrk4RA51O3XmsY3 dNdUp5UEgwEK2uirQ49eGBy71/067s9j1j5cn1SguthPSwQcSibgj3JLW3zEmVuTdguSjZ2/jK6Zx CyU8VxYpajC6sQIEu7evljbtW6LL5Y0FDh6lNbKAWu7fxeKXlHHkFi90ANg13efiK5ZjqQeh5xmDl /CfAUpeQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCGCq-006iFh-V8; Tue, 25 Jan 2022 07:25:32 +0000 Date: Mon, 24 Jan 2022 23:25:32 -0800 From: Christoph Hellwig To: Eric Biggers Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-scsi@vger.kernel.org, linux-mmc@vger.kernel.org, Greg Kroah-Hartman , Bart Van Assche , Hannes Reinecke Subject: Re: [PATCH v4 1/3] block: simplify calling convention of elv_unregister_queue() Message-ID: References: <20220124215938.2769-1-ebiggers@kernel.org> <20220124215938.2769-2-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220124215938.2769-2-ebiggers@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24, 2022 at 01:59:36PM -0800, Eric Biggers wrote: > From: Eric Biggers > > Make elv_unregister_queue() a no-op if q->elevator is NULL or is not > registered. > > This simplifies the existing callers, as well as the future caller in > the error path of blk_register_queue(). > > Also don't bother checking whether q is NULL, since it never is. > > Reviewed-by: Hannes Reinecke > Reviewed-by: Bart Van Assche > Signed-off-by: Eric Biggers Looks good, Reviewed-by: Christoph Hellwig