Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52C48C433F5 for ; Fri, 11 Feb 2022 06:53:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbiBKGx2 (ORCPT ); Fri, 11 Feb 2022 01:53:28 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbiBKGx1 (ORCPT ); Fri, 11 Feb 2022 01:53:27 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B83A790 for ; Thu, 10 Feb 2022 22:53:27 -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=v7Rcpas2mjKtdBymBHzFJE+MqkNyqWK+H8/1t8QY0Q0=; b=FTO8kNEOLcBcWa9E9fwM/zZD30 MVHc3xezzeoV8uVEwkhoWo+lceVZm44vfp51zya8PKsHslNvhSSL2XfK1AEzZG/dWkyJEe3b85Ey9 cDGrjSamdTfj4V8FB4tEuhNnWtuAIxzGHA3AR0IGcev4SZhNsW+4vRhIEUxKFU70yaAXoIZnYcGYi 78OrRGX3XrAxH4PYf6LFgVeSq7vCPaMtG47xU/94vvYDjqPLZa6Um/0ui4z+RDzwSYAmVCq84nsvN UXZZgsw0rJv+xfvhci9yN1FWmAbgxMQ1WZX5U3tDd9LfhiGxNbo22nRqVMlRo2FnfJs55AjT4/yVT XYC526Bg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIPo5-0061TC-Ft; Fri, 11 Feb 2022 06:53:25 +0000 Date: Thu, 10 Feb 2022 22:53:25 -0800 From: Christoph Hellwig To: Mike Snitzer Cc: dm-devel@redhat.com, linux-block@vger.kernel.org Subject: Re: [PATCH 05/14] dm: remove impossible BUG_ON in __send_empty_flush Message-ID: References: <20220210223832.99412-1-snitzer@redhat.com> <20220210223832.99412-6-snitzer@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220210223832.99412-6-snitzer@redhat.com> 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-block@vger.kernel.org On Thu, Feb 10, 2022 at 05:38:23PM -0500, Mike Snitzer wrote: > The flush_bio in question was just initialized to be empty, so there > is no way bio_has_data() will retrun true. So remove stale BUG_ON(). s/retrun/return/ Otherwise looks good: Reviewed-by: Christoph Hellwig