Received: by 10.192.165.148 with SMTP id m20csp564194imm; Wed, 25 Apr 2018 04:20:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx49/psGmrR+cTzAIlFlSFAEgW5fpGTZg4ALrtQrwd4ze3UpypgJfYg0RgCXvW0/+ZhbaqEvX X-Received: by 10.98.245.139 with SMTP id b11mr27383764pfm.113.1524655242617; Wed, 25 Apr 2018 04:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655242; cv=none; d=google.com; s=arc-20160816; b=OG25ck5zKW2cbFzWNnOGT/WXAqVwb9OCz+lILgz19PIw+Tml3vVLDtvGEmTgetujTx aE6+EkgkFXHRzsZek1qjdwF+msa20CiPd9muCOHTxa0Q0n2N9199jWnmVi+X5wOiJwFg 8LiBcX53/o6N6oIY0jAiBLD3ecwB6brkGB1IQDmF595xnqNYS2vOEIw9IOxkVZi/8dKl P/x1mY31q0Sdy7wTkOe4IpfqsB6CXgSqggqxakOPxUSKXbmXhzQFFXZA0BEXuaAA3NyL yhAws7p65cO+9sFLmZkMlT2z4vRcHRood9gAQWWpHEyLcbJkza2CoSZO3KaJDjbvfKAw xrmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=s96vCf6OqJV8EFfBCEgBqoF+Ixl+3ZrlWhcqwRtqS4k=; b=r415ZAhQ9lKg2qkxDi6Rorw6GsIlCAxoSdbD4kRLd8rOCMSGWwjZ1NXauoHw0LQIYx 7/EgAolVXCto738lW+4e7Bsc7UPDuPKpqZPp/GO/wdtXT+UhgW5mXbNzMw3/QpqnRLHD 5DyvX5BVCeKvs+p+4pbdmE20uFg3p1B8gRG97jMIjuo1uB9+YqjUrDaL69DUT1GjQob3 KKUlyPY7dX9hxZ7B3cinAaMNFvjkp8WH//+Laest6bZoGXOYzbyetoUYn3Jun2IEVKi3 fO6zMdrqRZRXxznYW6BCpYkxcZX3U4Fx8MWX9vwoC7xTafhwAafRYaK5y5+q8Bj7Gal9 jQWw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si16113214ply.517.2018.04.25.04.20.28; Wed, 25 Apr 2018 04:20:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753858AbeDYLT1 (ORCPT + 99 others); Wed, 25 Apr 2018 07:19:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52028 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752827AbeDYKkF (ORCPT ); Wed, 25 Apr 2018 06:40:05 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C7C9B272; Wed, 25 Apr 2018 10:40:04 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Goldwyn Rodrigues , Jens Axboe , Sasha Levin Subject: [PATCH 4.14 076/183] block: Set BIO_TRACE_COMPLETION on new bio during split Date: Wed, 25 Apr 2018 12:34:56 +0200 Message-Id: <20180425103245.563519448@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Goldwyn Rodrigues [ Upstream commit 20d59023c5ec4426284af492808bcea1f39787ef ] We inadvertently set it again on the source bio, but we need to set it on the new split bio instead. Fixes: fbbaf700e7b1 ("block: trace completion of all bios.") Signed-off-by: Goldwyn Rodrigues Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- block/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/block/bio.c +++ b/block/bio.c @@ -1893,7 +1893,7 @@ struct bio *bio_split(struct bio *bio, i bio_advance(bio, split->bi_iter.bi_size); if (bio_flagged(bio, BIO_TRACE_COMPLETION)) - bio_set_flag(bio, BIO_TRACE_COMPLETION); + bio_set_flag(split, BIO_TRACE_COMPLETION); return split; }