Received: by 10.213.65.68 with SMTP id h4csp2124768imn; Sun, 8 Apr 2018 20:19:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/XbZlr7dxjAh5cSfw3w7040a/P48zamNZfxhy+EDKrXNSP7zCyrl2iO0CjaE1xg7IBOJEi X-Received: by 10.99.113.93 with SMTP id b29mr23917524pgn.243.1523243956346; Sun, 08 Apr 2018 20:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243956; cv=none; d=google.com; s=arc-20160816; b=V6apdp74jeH5ZfHZ5AXftrE91ONNALphCJWYswxBhB2YZlpi6n4v6OZZxSgAeB4ePA lMxbyy6rzUgbLE9empbN7M1tEVxoglzBd/YbP/6izi9u4RnUJi4oXeGreLgEsXvaAksm rFlo3VmqE7O8RtrDt8a9hPmSI1dcKm6E6QuLcA0QVFBYELR32wPx0nWd0lGtocWFwHxH YfSNqySHr/u0dTxe23A9XwMv3iIWeLuaKyiqWXcVTZ2jLekH3fadhyp295mx6WC+gvlj qlzr2j+clBd9A/vAk64jZNAJdcSeAI8vjJZnUzfxBQI3GsSWHOo7/uoSmTDV3eyIzBvT Iw6A== 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=y5eJ2+EXUh+ml/yO8K6OADz3i4EjVfOUKEqh13qpwLo=; b=RZm7HnXx+tXopYk5HTXPxKq737LwysViT21wN/guQES5ozkQVPsitCe3DH9xQDh1A+ nPyajQe89/qIKSiScMYBuKYOqdE3tvEvGE1KNY5xRS2Tt1yhbomBVx/V1I1Z79Cl0prM 23jL6NMH21ldfxWyhgfZptESRAUtOClsTLUDz+zv7A/eN048c1AGMpdSzPyhdvCFRAyy deRqdI8qzMvijHarU/HTh1g3DBV0ixF1Lcf8O516wBSmkrNeaIPNWOdpISekMI3HpreJ lx/vTJlke6wXtdTJxeoSnuOOfX4hfNY3VvJYcutpnpfQPViaXffgVKCmUIdAdRjp7uMh 5D6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=jSIub8Lp; 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 p1-v6si15624137pld.412.2018.04.08.20.18.39; Sun, 08 Apr 2018 20:19: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=jSIub8Lp; 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 S1752958AbeDIDQF (ORCPT + 99 others); Sun, 8 Apr 2018 23:16:05 -0400 Received: from mail-by2nam03on0115.outbound.protection.outlook.com ([104.47.42.115]:29467 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754903AbeDIAXo (ORCPT ); Sun, 8 Apr 2018 20:23:44 -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=y5eJ2+EXUh+ml/yO8K6OADz3i4EjVfOUKEqh13qpwLo=; b=jSIub8LpufpRhqxhG514RH2Yey7fVkz6q7D8x2S/RAU2rPSBUxzAZugulxeMwjsjgB1s6nCa4da+TIg0sBSgNUQRzw20v6I2CxRkH26ebstprJQTViv9y77YkBPNAsUvHdVGkg/godx74H2RFty7bjjnIOWNnwXanZE/BstSQMU= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1080.namprd21.prod.outlook.com (52.132.130.14) 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:23:38 +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:23:38 +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.14 064/161] block: Set BIO_TRACE_COMPLETION on new bio during split Thread-Topic: [PATCH AUTOSEL for 4.14 064/161] block: Set BIO_TRACE_COMPLETION on new bio during split Thread-Index: AQHTz5iVe6HGmBR6N0iTQfUkI28N3A== Date: Mon, 9 Apr 2018 00:20:38 +0000 Message-ID: <20180409001936.162706-64-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB1080;7:kDuFWB77e8uwrkDIrnHGGlNRgvlvyW0DaxN0RkzLfHnidVKV9oG+eCOL+F7BtFsyMOhCKCrR7uHnTATp9FEqGIX29hPNdAhbnLjeAYy6kr8fZIriptgrrq3vqpHMBDhhTyYJ8Z2NV6p/EphoA9AbBCBIbFy4QqijfAf+khTax5w7jzmp1pR2dER8wbXSM9xFh+7OehETWlMg4rsJMdFlEo7vsOeT+o+X4rbn4HmpYh3hZ7zQMYAlbrwYOmxBcLzP;20:KIowMC79JkyLrQy1ceoVeqJaMrWbIkDe4b55kAKC3ay9yUJMGEj7KppJ7F8BSdcqAF52zcoizvOkFELE153KLYuaokzgF4hFLUMQTWRiW1VGUZH6O1wXmD01FPeLvp7zHI21P0ji8VSJdGFfoc0ZMFzRbB6T+mCKuUCaYHD38Mk= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: f4df6a22-a2ef-43a5-9d53-08d59db02402 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1080; x-ms-traffictypediagnostic: DM5PR2101MB1080: 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)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1080;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1080; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(396003)(39380400002)(366004)(39860400002)(199004)(189003)(2501003)(5250100002)(8936002)(10090500001)(5660300001)(3660700001)(446003)(107886003)(14454004)(36756003)(6436002)(476003)(3280700002)(2616005)(11346002)(4326008)(53936002)(6512007)(22452003)(305945005)(10290500003)(316002)(102836004)(2906002)(6116002)(66066001)(6506007)(3846002)(7736002)(486006)(54906003)(110136005)(186003)(72206003)(26005)(1076002)(105586002)(2900100001)(6486002)(97736004)(478600001)(81156014)(81166006)(86612001)(8676002)(106356001)(99286004)(86362001)(76176011)(59450400001)(68736007)(25786009)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1080;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: 4z8obTp0pr7peekijgBkgNsslScC2YrTNU2HGZSigBPiJsID/7k2RkDWKuCdN5vyD52BDP6RX5M0d4x3IJotLhG2uX8EdhXcp/WLiPruoLGcuQwjtEUaiu3Lfj1MOEHgFfhuMmI75Zc+xbB0m7vSOi6/PNZbeQFVbaZR+p7ORPKDrWDj+jJHC0V26wwST1qof1WNzB57WALBQtvR23wKRQfMa6q0kTS2FKIg18zG+kWlf0qvpIfiUM6kE0LumIQ2cb38z9qf8aTQz1/IzFSd6kzA3HqK/fviIS3rKeBMoIEkz6OHs9ntUUPZ54whXuiQJUkJ0CDKwVqNoXJbYhL44G+9a/URt9xsJFcZ2Z4JpiVJash8LFHaHWqAgZ1My/Jy70Zc4sn/8v0MrBa+8tOf2M7x0B+sdMpbAUPbqxhxAak= 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: f4df6a22-a2ef-43a5-9d53-08d59db02402 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:38.2535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1080 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 7f978eac9a7a..6efb23370956 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1893,7 +1893,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