Received: by 10.213.65.68 with SMTP id h4csp2125693imn; Sun, 8 Apr 2018 20:21:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx486+62oAu8QcL9oB6+2MCM1Ppm5LI01GVtaA8QNaY8lYYSeh2v0RuMUzxrvMccmLa2Swygw X-Received: by 10.101.91.67 with SMTP id y3mr22026861pgr.264.1523244063382; Sun, 08 Apr 2018 20:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523244063; cv=none; d=google.com; s=arc-20160816; b=HI9mUFes5Q1X17fF9HGMo6e1ZImEp7O36Z8DykjQdQl4S0HAk5/OKnpTvat2eK266d Bzta1e67IOg6Xmg1VhOaTEcrpYOVzWw1wiC1Cqi0o73oiw+0cWLBeqLC9l8RohmmCLcE 4dfOTTNlVl9h3MEGfOcFNHXP3UslpTbeG7KHDB+0Po1cRderfoc2i8x/8r8sLlsSHyXL qCPjETQf5X0hbLWl6U3j2ffyGpaepB2CwFGeMtqJ7usotUmR7xPWPyTTuJ40leUfov1A vmWZ0lvw29inJ82BBFHfn6cCeTeLElwBHlLVsJVwuvgmO2YjgEuQUI3UzQlYHrJ+Fkk6 m5kg== 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=IG2PEkxQ7fMeSG/f1/JpvgbZ+cDo9t75QUl+a1WaJnQ=; b=VxL2PFgURcu0NTO4t9zmhBtgHdAYHpxJT39B9ez83SZC/mVcWTsgeyjAvsiKwXgcbf iM5mJAND2O9gNFLfbQl8z1YtZPWyfs6ZQlC9GOlsFU9Tb9E7Q2IhWpafXaYgvvHy6Ays 0+l4Es4EQwBx2ye/X+GP3fw9CncB17qXvfzWev308zqIV8DCJFo8ciYSgIVs+E2kfQUm V8b4IrhCB++8zemGPeeHK8yjzh2vymXElOWMwMH09M0yTJ2ktQTXpRvKI0wSxmhTTmp2 WsGJctUdvnMMIPbHY5wRKldfOdovcmhS41Hwkc5/rpY6u17QVD96q+GnaXGLup9TQApv +lcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=kv7xFbOz; 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 r25si6539990pfh.2.2018.04.08.20.20.26; Sun, 08 Apr 2018 20:21:03 -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=kv7xFbOz; 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 S1752723AbeDIDRv (ORCPT + 99 others); Sun, 8 Apr 2018 23:17:51 -0400 Received: from mail-bn3nam01on0095.outbound.protection.outlook.com ([104.47.33.95]:56127 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754869AbeDIAXe (ORCPT ); Sun, 8 Apr 2018 20:23: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=IG2PEkxQ7fMeSG/f1/JpvgbZ+cDo9t75QUl+a1WaJnQ=; b=kv7xFbOzkYK4opz2p2XL0XROqn63M9MRqZsXYD0Xok0PmGsF9l6Y8JcFGk++Mq0A5y6nhtpALVF7ZskMJ2QRbA3MxjtDVJHuuUF4lU4lQmSAhiMNvNfoWvMA/dN3BTaKjixxrwhgVgxRZlD2b/RtwqQ3R1tHb5QOcpW7MJA0dKE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1014.namprd21.prod.outlook.com (52.132.133.36) 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: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:23: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.14 056/161] Btrfs: raid56: fix race between merge_bio and rbio_orig_end_io Thread-Topic: [PATCH AUTOSEL for 4.14 056/161] Btrfs: raid56: fix race between merge_bio and rbio_orig_end_io Thread-Index: AQHTz5iSUcwpBkO3aUeDEe43jxopfw== Date: Mon, 9 Apr 2018 00:20:31 +0000 Message-ID: <20180409001936.162706-56-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;DM5PR2101MB1014;7:D8PO+NB7WM4Sz2Fb8B1pNdQUZl7NOj5Ho3CWujfK1st5J5a/OCrUInzCt2ExrIZmhfifHV+FveZ3nqnY3Si8pQnQHvjyr3rUh3aNyy66THO0msWXsVWU6sSY9rG5YDBt+0d9g6piNO2t8TinPiJh90CWZL6hZN6TCHqjuZFvG6AmGfciWgTYVgZhqbKfTGXVu5JXl4k5kUAn2FrMUznKB0Sq4WRaqRlDbJZhTJbtAIz2BFpcVSLFTAsQKcZM3Feu;20:Xc+G2vuDr8rqUjEloKHXiwBCBNGNrMKaScG+2p8VmFza3Y3/3QJx7rWFTKvoBKd/dOqpOR4snFvqtIv3jB1AFdl0/BTZDOoCIuiiaq2qORPfagT3SLx4UKbcOQ/TGD52izV2Uf8UhZf+WDaeXxMBDkaD2vgD8GZbUJku7Eh6Oo4= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: ecb7009b-00e1-414a-98f8-08d59db01f4e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1014; x-ms-traffictypediagnostic: DM5PR2101MB1014: 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)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1014;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1014; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(346002)(366004)(39860400002)(39380400002)(396003)(376002)(189003)(199004)(81166006)(81156014)(478600001)(6436002)(72206003)(8936002)(10290500003)(106356001)(99286004)(86362001)(2616005)(7736002)(2501003)(446003)(476003)(8676002)(11346002)(105586002)(305945005)(5250100002)(6512007)(53936002)(68736007)(107886003)(66066001)(86612001)(2906002)(14454004)(186003)(22452003)(25786009)(4326008)(2900100001)(486006)(36756003)(6486002)(3660700001)(59450400001)(54906003)(26005)(3280700002)(110136005)(1076002)(10090500001)(76176011)(6506007)(97736004)(316002)(3846002)(6116002)(102836004)(5660300001)(22906009)(217873001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1014;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: YkaMI9iz3yMjvgVpeRDOpdgiUT0X70q0rPCv6HAkqmKb1aH51vJy6Ijo6t6b0yqWygemReBThKFL/Mv0IsbVKQxA2OaB1pjt7Sqi0EOdZJ+cw2DIy65AHJiADUU083sAiaOt0ao4FG7K3tD0YbVmQo7uHS/CMdNcJ3AJO+/diFu6ekBC9Hp6nroLdWv8acrg5VUtPSgAzAuwcGrb8+4HHEfu6wv0mQHULyaupzhu9d30d8grzgVZeWYsUhjMrItfTmxv0mjaFlCfP3r032T8nukWVZ1svkb+vU8g7yLNO8hVznnrAW9dvK5QErGkPogUy8qqNJlI1ZBgbpppFTB3hil9RB4yyY25AayIPRvr2PEVinSfFwHVbq3ANZevT7IeZygbonhnF1zm7iW87UDGg7ck0x7BBi3WtuZSPNgh7bo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecb7009b-00e1-414a-98f8-08d59db01f4e X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:31.8318 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1014 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 IGRvZXNuJ3QNCmhhdmUgdGhlIGFib3ZlIGlzc3VlLg0KDQpSZXBvcnRlZC1ieTogSsOpcsO0bWUg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