Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6401927imm; Wed, 27 Jun 2018 07:11:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKaiL7bPF7YXBYcpdeRyzDUht7e1NyQ/TOwlacrdkNhmGsM+Eh+qzQmC5CzQOuf0Jm0IEv6 X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr6139196plc.341.1530108676723; Wed, 27 Jun 2018 07:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530108676; cv=none; d=google.com; s=arc-20160816; b=twJMtkxMjIPsxXTFVUzW3EVZPvbKrc3B0Z4PmuX1dL3E+Cl4n8RaG0dpFWGuw1CBuE q1OwbzmYk5YJ2goSZKnkYM44qRIPWCnCBWI6TSrEU5NX2DBooV1ZJNg92vma5dHd7X4G ciVnF4/duQX1U4o3SwdLYI6lWFbqQGJWd2wwZtqgiWMte4OCcWZIQIlKXF0ItcJHWwQZ 8WrkFkTUEW6o+R+Z6M66cNc8CQy2WYjK2miMNnbnRWwp+ajmi/lMohNGg29uSMT7UUyQ EiuGDEyaM+sodmS1W4CXvuK7E0/KWpCmfKQxiDXW97zGTP66ZE+mNYAokpNfC6fQAQn1 wZ/g== 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:arc-authentication-results; bh=lTCZzJV9lZ3bJ2Xf97LCYd1+/l2zpOz/tYambjLbzRk=; b=sqIMoilUreI6CCbaAPu7goNsfNwa9ldsuAg9lLHQ14AN5Hg844Z2y33cRd8L7naEY9 U1Ig60ba8H1avV4PRok4SW1Z9hvn6BkX76g+VpVQuG34c/GmywShB7MPaA6A9Hl+Crvm sNgdhofkOYwXXMy15glsvEIyNqErDTU6KQOuLRuFKAuknCLk8xgGLNBIL2/WzQxapEep uOLHuvSlEKq5QZ8coDNJOpbpzLBJBqpu+uLdIza7VItAlktLJFwGU24GeJc4Vz5pEcBh kG3aDhq8LlnvBNjakgIFfnLcjDjQGIfub+gQTwRLNKRUN809o1Xb4VyF7oYsYrqGh2Dm C/3Q== 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 i1-v6si3446875pgq.183.2018.06.27.07.11.02; Wed, 27 Jun 2018 07:11:16 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934025AbeF0NRQ (ORCPT + 99 others); Wed, 27 Jun 2018 09:17:16 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56762 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752144AbeF0NRN (ORCPT ); Wed, 27 Jun 2018 09:17:13 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B7FA070206; Wed, 27 Jun 2018 13:17:12 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 272382026D5B; Wed, 27 Jun 2018 13:17:12 +0000 (UTC) Date: Wed, 27 Jun 2018 09:17:11 -0400 From: Mike Snitzer To: Ming Lei Cc: Jens Axboe , Christoph Hellwig , Kent Overstreet , David Sterba , Huang Ying , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Theodore Ts'o , "Darrick J . Wong" , Coly Li , Filipe Manana , Randy Dunlap , stable@vger.kernel.org Subject: Re: [PATCH V7 01/24] dm: use bio_split() when splitting out the already processed bio Message-ID: <20180627131711.GA11531@redhat.com> References: <20180627124548.3456-1-ming.lei@redhat.com> <20180627124548.3456-2-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180627124548.3456-2-ming.lei@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 27 Jun 2018 13:17:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 27 Jun 2018 13:17:12 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msnitzer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 27 2018 at 8:45am -0400, Ming Lei wrote: > From: Mike Snitzer > > Use of bio_clone_bioset() is inefficient if there is no need to clone > the original bio's bio_vec array. Best to use the bio_clone_fast() > variant. Also, just using bio_advance() is only part of what is needed > to properly setup the clone -- it doesn't account for the various > bio_integrity() related work that also needs to be performed (see > bio_split). > > Address both of these issues by switching from bio_clone_bioset() to > bio_split(). > > Fixes: 18a25da8 ("dm: ensure bio submission follows a depth-first tree walk") > Cc: stable@vger.kernel.org > Reported-by: Christoph Hellwig > Reviewed-by: NeilBrown > Reviewed-by: Ming Lei > Signed-off-by: Mike Snitzer FYI, I'll be sending this to Linus tomorrow. Mike