Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp789184imj; Fri, 15 Feb 2019 06:52:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IbwCf3nhYLqbhsgUpDFkUle8wrj7cx6NIWAdXhYFJgaReLvu1K653JrK9dbLbofyJLp/vR0 X-Received: by 2002:a63:4618:: with SMTP id t24mr5792892pga.316.1550242362718; Fri, 15 Feb 2019 06:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550242362; cv=none; d=google.com; s=arc-20160816; b=isCKw1sijJbxKQ19pmVbgjZAnvrPZCak/XxvPipScXdoiPva02qs5gUu3HklsSYNZ7 7bYAlFtedJXTnXwHR2xQOXeclhSMjtbdQlzhPMEseDsMpP8v8JRDPeGaiTPX3djJhd+S o4g73DdHHZaqt3tFfv7wdSyUJjqbswjPoNB4ZqKONO5c/quDH4GIZNFn7p+tQEMO7B8S 03mAehhIjnCH1XsNbRNq1HJBTf9LDEGeOHtgBQO873iL5SdAAQC76Vrjw7J+oryedgQ6 1URgYL9qlxG59YUFMEnaGqD66WRtJqbUq2xMjw1SagP6CbNSaieRqgBujspg59xgiyCI +tJg== 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=DkGA9Zv5+faYu0A7LLLQd0TpXOGu9HcghrpBOn1t8TQ=; b=G8qJbARSdUP19XUCmD7p0qmqWYhfcOOpcaqnfc8nbngSvfDzNwRqH5SjgQv/nCbdKZ QDHSs61m2p6FMCTU9E5jUpOXAbVsCvjElczSbO37uObsck4fRykkO28TXMR2lVrfylr5 0IvpGlkmy0hujJOevBI7grXVQ2SxvjXtxD2BMsMQS/kWJRbxfpGmPDhu1/S3Rosy9msM QA/N/VEeDKXq2mn5uXoNYcDyMo6SOXI6ceMSXJn1v/DSPyzkgfDzxvneVXTC9TvfDwO6 gOuBi6iFC3zWRSsHCacVcjFn9QYWWHD3nObrFQjlDvHHMG6AlG7EHqw7qCTMXGFTwllH 5aNQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si5691733pfd.250.2019.02.15.06.52.26; Fri, 15 Feb 2019 06:52:42 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387889AbfBODtK (ORCPT + 99 others); Thu, 14 Feb 2019 22:49:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45854 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730046AbfBODtK (ORCPT ); Thu, 14 Feb 2019 22:49:10 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7E794637EC; Fri, 15 Feb 2019 03:49:10 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 47F8B60A9B; Fri, 15 Feb 2019 03:49:10 +0000 (UTC) Date: Thu, 14 Feb 2019 22:49:09 -0500 From: Mike Snitzer To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.20 42/77] dm: fix clone_bio() to trigger blk_recount_segments() Message-ID: <20190215034909.GB17226@redhat.com> References: <20190215020855.176727-1-sashal@kernel.org> <20190215020855.176727-42-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190215020855.176727-42-sashal@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 15 Feb 2019 03:49:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 14 2019 at 9:08pm -0500, Sasha Levin wrote: > From: Mike Snitzer > > [ Upstream commit 57c36519e4b949f89381053f7283f5d605595b42 ] > > DM's clone_bio() now benefits from using bio_trim() by fixing the fact > that clone_bio() wasn't clearing BIO_SEG_VALID like bio_trim() does; > which triggers blk_recount_segments() via bio_phys_segments(). > > Reviewed-by: Ming Lei > Signed-off-by: Mike Snitzer > Signed-off-by: Sasha Levin Please no, I later effectively reverted this change with commit fa8db4948f522 ("dm: don't use bio_trim() afterall") (As and aside, I really shouldn't have to defend against stable@ bots picking up a commit, like 57c36519e4b949f, that wasn't marked for stable@.)