Received: by 10.213.65.68 with SMTP id h4csp2111820imn; Sun, 8 Apr 2018 20:01:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx49+JdZjyQwjT7tU+0BLBDVAJxnItgQewwTWhJoKImkEqClLblJkCW0L+YrloPMo3KkaObbW X-Received: by 2002:a17:902:6590:: with SMTP id c16-v6mr3706431plk.292.1523242876516; Sun, 08 Apr 2018 20:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523242876; cv=none; d=google.com; s=arc-20160816; b=tPk27XrxUb8zm3MqH0OwPBA3jbe0Nky5bfX2vd+ble9Y0fPQQcuZ/y/RNTja09pVfh c2STRlQTGFw4CwN0hrWlUCJhbfV1i1OE8bDJd3TWpmXB0vndQUym+CzSbgqbd8qQiDlc oipaoS9WOLvTYueDkSC8sMZ52AU025WDOifN+HrmEAbnKXb+tPOIuK3H0H/MMSbht13w KRZi9g7H0dG7GuuZFKAS+TlvGMiRQjwHEmI0m/IVWkuW0L04h/plWUH8VmPr7VxwtlxB 1tQ8w/uqrvmUs6nbOQvF2vVCldGNOB0oo5AmDGfrZwgWCep1VQdx5S/SMbWgSMwDWGQ7 eOFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=PGApOi8EzngCIdN/cfg9o9IBHtNiGxVT4NtEdodg6tU=; b=J6nI63OZTwjAKj/ewh/l67iKm1Xx/RlsMluI1XKKdnIhlzp5xNArZs6EMlHla9VcCe wMk6S+yhBzQP2VPD9TytXVjr03HWzq6Mjct+M1GMagEEaAOIgtW7jcZl+ZmI7/ShHOaq 0py1mll95ZSq9ow5ub84S2rfzhinf6IOY+fmuR/tOo9P0vUWbnuQjoz9u2BduW5ttghr 3YDZSDe2Ep+H+xkl/RC3AVMjv6m6R8iodB61eMN8DRHomSqxsH5MJDPMGTE9Mp4URqOY l+o++g9RRgD4QnLvNahnLl65T/D+5HRkFb/8fUVgeIcL9bsLD5iKgRBnd0M5wsmcAPxv DegQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=IcwbtW4D; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si11987933pfl.268.2018.04.08.20.00.39; Sun, 08 Apr 2018 20:01: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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=IcwbtW4D; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753765AbeDIASp (ORCPT + 99 others); Sun, 8 Apr 2018 20:18:45 -0400 Received: from mail-bn3nam01on0092.outbound.protection.outlook.com ([104.47.33.92]:62923 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753651AbeDIASl (ORCPT ); Sun, 8 Apr 2018 20:18:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PGApOi8EzngCIdN/cfg9o9IBHtNiGxVT4NtEdodg6tU=; b=IcwbtW4DaNeEfr9MpBKLItPAXPbz+VPQIWcgeK0lcyLumDGw241m/ISMFeYP8sk8xTM5E1s5HIM2/ArHQ5F/Z9wr1+I/SV7ZDaX3N1WN2ycEC0DGn3QejCy3wuiLOpOpemCXlBBAD/NP8HcpfHPW9TnHv+RMLPmYBCFiFCkXOcs= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:18:35 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:18:35 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Goldwyn Rodrigues , Jens Axboe , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 075/189] block: Set BIO_TRACE_COMPLETION on new bio during split Thread-Topic: [PATCH AUTOSEL for 4.15 075/189] block: Set BIO_TRACE_COMPLETION on new bio during split Thread-Index: AQHTz5gusTsGu93jskapBv62s/4JcQ== Date: Mon, 9 Apr 2018 00:17:44 +0000 Message-ID: <20180409001637.162453-75-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1128;7:hSyzAG0wzqjbM9dEQK24hEcuK3IlUu2xYVmQQgWZeGRJsqqqD8YEvd7luoCMK2toj/bK0EwzyJIl2IKiGoDZDOXii7FdKvpG6eL7G9byjbdRXeQagKSebl8Upp23Gdggj+q77CB78TC4+10GrzPFZ51Iad34qyX+f5Yoz7q0dIxiC+riEA/oO8y+VT/KJYrbhRtViVCvh72fQObMkC9J1yR881mUhuPtpIScuSX0yv9HrGtwBAptTxuwfo2xOGXm;20:yWQbPmmjHwjohb8GqWZpkwf0+/l8m4aH92HiQhII65tQDQRN+1ScpAojA+ASLG2D08AdXzuzLl+xVwReRYEZxUS+NzW610cxzwSti31nKrx1k8I5jkI/S/TTtgUcZ+WvrJ3BRWho/VlWft7jL9762ETuu2njXX3kpXfHf9ccIu0= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: d968ed18-f930-4fbe-b797-08d59daf6f6f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1128; x-ms-traffictypediagnostic: DM5PR2101MB1128: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1128;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1128; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(396003)(376002)(366004)(39380400002)(199004)(189003)(66066001)(86362001)(59450400001)(3660700001)(3280700002)(2900100001)(25786009)(36756003)(6506007)(76176011)(2906002)(6486002)(86612001)(99286004)(102836004)(1076002)(7736002)(97736004)(2616005)(446003)(486006)(11346002)(476003)(26005)(305945005)(6666003)(6512007)(4326008)(107886003)(478600001)(6436002)(5660300001)(10290500003)(5250100002)(22452003)(316002)(105586002)(186003)(8676002)(110136005)(54906003)(72206003)(53936002)(2501003)(68736007)(14454004)(6116002)(8936002)(3846002)(81156014)(10090500001)(106356001)(81166006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1128;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: j/bfYRJCrQAFSybVStc0VwIKy1TphE27m6dTQ2Ugnq1dVm2Wmw4P9Yteugeb5LkfmXIToFDk6r6LKQGPasgO3xL8mjGIC9kl9j+0E5L1s2evBpJGJKsGKfF5mszVYKyi4dx4bHuZLuA6jLcQYKX/9axA02wVF2NOzgcmbbF1DwxJb4gPo2MSMJgiBtwBwTQXic5j2wpJ6LdzU8RuzR0dVk/2Hovwuu5Exkse02/FnGP3r/PXkblrHvTDSG7GblpFYAzLhjRbe8saewlTbEB+MfRyhcP8BeBB3y9YkvhEa7/4wvaFmpA8g5o45SaCvxpZ/cjJBUGxxt920raaAjsf7hjCR0ptJTZgWirgWlTku0fCt7NeNDPL9t+yAe+VrWVbWMMSRUkPaOsEvaJ6gAx2CXGO7rzz3/+R5N+LHRdhi7M= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d968ed18-f930-4fbe-b797-08d59daf6f6f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:44.0394 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- block/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bio.c b/block/bio.c index 9ef6cf3addb3..7d38b769fde2 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1838,7 +1838,7 @@ struct bio *bio_split(struct bio *bio, int sectors, bio_advance(bio, split->bi_iter.bi_size); =20 if (bio_flagged(bio, BIO_TRACE_COMPLETION)) - bio_set_flag(bio, BIO_TRACE_COMPLETION); + bio_set_flag(split, BIO_TRACE_COMPLETION); =20 return split; } --=20 2.15.1