Received: by 10.213.65.68 with SMTP id h4csp2153249imn; Sun, 8 Apr 2018 21:05:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/3XLN8QldwT2qLU535j/Z+sWPzPJe2c3f47fB3aV+UABuz8TMemTQvePzBjMuGby3f5rc3 X-Received: by 10.101.96.65 with SMTP id b1mr24290557pgv.340.1523246716481; Sun, 08 Apr 2018 21:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523246716; cv=none; d=google.com; s=arc-20160816; b=iw4+O/WcoTwC7vvl6RWvcyKBe7iDs46czQfMY8wfVvDWRiuKtcNiEIizxy6XmbgfBF Y3qgHOZ69kMiYksDG5l1FDMgXziVX7PUZlEG95dNzdwW+McYmDdr5hHOdm5bnH7s/Uag iKm5D7L9jvj0P1K2jVh8xZlvAF/vrbOUvpUQq2/nPHgz84QtgLREwZSI1EYJMmRv4Isr tinqDTwXAjfxCkw0JYe6vuijSRvfreDkCodm1D/KzMTncQi2AqyTiBbuoFvQ4QjeM7AP reJSImtCUzaIyYTltnHS4MZ7KtD9LhO8xVHYmx+kyVEDzN2XqeL/Y0vYDThdygmA58w0 RwDw== 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 :content-id: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=NOGd4V7aWAFFGRC1cO5g43OVxqxMccKnubSQa6bm8Xc=; b=Ae4itF3sSjMyJZx4DgOq3BM5+/4QT49m8UR+/stBnC/EZ81oLecl/+Ar508duOzTHg ADv0/XM9KVeKf8iHM4wwUenBcYXV6A2j+s2hfLSzQlup25sqRLppPoSsIf70kxFZX97T ZCAlO7fgUO2LQILgLKn93HSZJXT2d9pVugzz5178js66m60PwHpV6sFdGC4dKp9lm8E3 CB+YmUpzxyMrm8+4tPiV7BT6loE5WIpUHMs+9iI6plNPg7G5olPUEX/okQZwd8/MoN92 R7aHvXxANnAR/3VdTJD7T+PPFZDEPlwyc7wBpcp1+RNA4n6MtLjExpbJ4aQdODGL5Xga VsfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Eg1p/SFA; 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 g12-v6si13386361pla.133.2018.04.08.21.04.39; Sun, 08 Apr 2018 21:05: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=Eg1p/SFA; 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 S1754095AbeDID7q (ORCPT + 99 others); Sun, 8 Apr 2018 23:59:46 -0400 Received: from mail-co1nam03on0109.outbound.protection.outlook.com ([104.47.40.109]:37278 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753625AbeDIASe (ORCPT ); Sun, 8 Apr 2018 20:18:34 -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=NOGd4V7aWAFFGRC1cO5g43OVxqxMccKnubSQa6bm8Xc=; b=Eg1p/SFACYtiOBZsyqTfpyVd7ZV1zL9/WA1RbXnz0/0OvxmVWE3Ip0uxj5NIdQotl7z9SYAOw8aiMbgywtTJluKssj2ZqEU2gV+JtfMXgL37GXT3LSO9UG/s3koQVJHAMI8F6LAH+ntM2BcM6t2De9Q93vlDINW8GQGYbCk8EZI= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1046.namprd21.prod.outlook.com (52.132.128.15) 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:30 +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:30 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Liu Bo , David Sterba , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 066/189] Btrfs: raid56: fix race between merge_bio and rbio_orig_end_io Thread-Topic: [PATCH AUTOSEL for 4.15 066/189] Btrfs: raid56: fix race between merge_bio and rbio_orig_end_io Thread-Index: AQHTz5gq9p2qcAhcEkSP9JvFY/zrxw== Date: Mon, 9 Apr 2018 00:17:37 +0000 Message-ID: <20180409001637.162453-66-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;DM5PR2101MB1046;7:hsxd9R9L1dMwQUAh5xp2a1nG1x27d2FywTR6B7mq2tTUwvpS42vPqyS6RM9FAPvUa7f1oIGJzeKATKSWXFIwuJqE+HjaslQK79yLe+NV0i6ptXfkX4hefNPK2rQWGObuIWCZ1OQsuW+LfFUeQT9BU4W3rvkYmGfH69te3tpAgaFgHsqVoH+Ck53AYd1FxObkkOM8WXSHIMxpdQCAIzqrFdk7eGCxv0klcsB7YhnLd/dsEyxPZXCkyyJ75FNRzFW+;20:AYwNGF0wc+KanxeL/4BxQpsrOYJs/SnzMt6qa9rMwByQujL8akmnulnQdKuLugCJEercHZ/elGsx3W3T3xglfmuRgt+tJrIDCHjr59Mgl7NF0bM1Vq9X3um/3EHYXSaNJD830DMJ0/NIkB01MQKmPXqbS5eyYhEuNyLBIeFjNkE= X-MS-Office365-Filtering-Correlation-Id: 3b71d927-0fd6-4c4f-83f3-08d59daf6c66 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1046; x-ms-traffictypediagnostic: DM5PR2101MB1046: 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)(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1046;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1046; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(376002)(396003)(366004)(39860400002)(199004)(189003)(36756003)(186003)(11346002)(446003)(476003)(2616005)(7736002)(5660300001)(26005)(10290500003)(478600001)(106356001)(68736007)(10090500001)(54906003)(3846002)(59450400001)(22452003)(6116002)(86612001)(110136005)(99286004)(86362001)(72206003)(305945005)(76176011)(102836004)(6506007)(486006)(316002)(3280700002)(3660700001)(81166006)(81156014)(8676002)(2906002)(14454004)(2900100001)(97736004)(6486002)(8936002)(1076002)(6512007)(6436002)(105586002)(25786009)(4326008)(2501003)(5250100002)(53936002)(66066001)(107886003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1046;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: EFCo0YJkBayZ9GpekUdi48TlgKRIc3nS2bbgQ7NhmEVlSaYp8DqAy5NPpWYDHLY7Yd+hWmTML7ywqauF8XIEscJ/Aj1XVbpV21z3vesniFE5L9WLnoS6HVQnuGddEpb/jOZyrwY+/6rEtbVIXzC+VnHUt3hlKCzlyH2T0iCzBx9vYvv44z0US/JawaZ8XzWEZRmAyGVOr59K1SQ1xUt1wS8LG4wg0Oa3PsEyZju/PR8Wz+NbK8zOvbPRdRd2I+pvtA68MnwbM4zXSkfNlCfaJqX2uK4At2MuvGHXN7OcghsXfPKvPM5j0I+spl3bSr445d9NdnEnrzyqhOrlJMhbHDWX+F5svGtoWUS1QhA+7Dp4Kp4BqSCTI2UQYWOwwCCQkZObWaDmo5iVBRQSw87iqjLeXwqen4+AGHiHidNx0uk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <62B5C162E5F00440A1D3AB1033CC9D57@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b71d927-0fd6-4c4f-83f3-08d59daf6c66 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:37.2744 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1046 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTGl1IEJvIDxiby5saS5saXVAb3JhY2xlLmNvbT4NCg0KWyBVcHN0cmVhbSBjb21taXQg NzU4M2Q4ZDA4OGZmMmMzMjNiMWQ0ZjE1YjE5MWNhMmMyM2QzMjU1OCBdDQoNCkJlZm9yZSByYmlv X29yaWdfZW5kX2lvKCkgZ29lcyB0byBmcmVlIHJiaW8sIHJiaW8gbWF5IGdldCBtZXJnZWQgd2l0 aA0KbW9yZSBiaW9zIGZyb20gb3RoZXIgcmJpb3MgYW5kIHJiaW8tPmJpb19saXN0IGJlY29tZXMg bm9uLWVtcHR5LA0KaW4gdGhhdCBjYXNlLCB0aGVzZSBuZXdseSBtZXJnZWQgYmlvcyBkb24ndCBl bmQgcHJvcGVybHkuDQoNCk9uY2UgdW5sb2NrX3N0cmlwZSgpIGlzIGRvbmUsIHJiaW8tPmJpb19s aXN0IHdpbGwgbm90IGJlIHVwZGF0ZWQgYW55DQptb3JlIGFuZCB3ZSBjYW4gY2FsbCBiaW9fZW5k aW8oKSBvbiBhbGwgcXVldWVkIGJpb3MuDQoNCkl0IHNob3VsZCBvbmx5IGhhcHBlbiBpbiBlcnJv ci1vdXQgY2FzZXMsIHRoZSBub3JtYWwgcGF0aCBvZiByZWNvdmVyDQphbmQgZnVsbCBzdHJpcGUg d3JpdGUgaGF2ZSBhbHJlYWR5IHNldCBSQklPX1JNV19MT0NLRURfQklUIHRvIGRpc2FibGUNCm1l cmdlIGJlZm9yZSBkb2luZyBJTywgc28gcmJpb19vcmlnX2VuZF9pbygpIGNhbGxlZCBieSB0aGVt IGRvZXNuJ3QNCmhhdmUgdGhlIGFib3ZlIGlzc3VlLg0KDQpSZXBvcnRlZC1ieTogSsOpcsO0bWU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