Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp610923img; Mon, 18 Mar 2019 10:12:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGKTJvQF0iB5VL4KYvRjK1Kt3CUZ09Klr1Qv26QmadXMxKIAstxzUN09Q2CcyUNtQq6GFF X-Received: by 2002:a63:5318:: with SMTP id h24mr18558781pgb.76.1552929133219; Mon, 18 Mar 2019 10:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552929133; cv=none; d=google.com; s=arc-20160816; b=YO1gDeCgpx1fBztUrwmC9tfkJ5v3uGfM5LyzahYFas+W8btQPiJ7Tg6ZRa8TOLfqj7 e2drPFeH9aLjGv747NjYZWuTQ1r8QH0KFVIDM3t+VrZZ7gRcQotH9Zv0yhJ0p6oXIH6w gAyEJV4te1WgAiFCtWDKCj8f+/VeSCW7MP92uDKviQ3bD5s/rbs3fnysNxt2+a5bKOGr dLgVjKEHsfisRE7hW8aBVneTQ/E2m3FX9OnBFkje0lMaliAr7zg+cJY/cm+dNCisqq1y vp3all/RruFbXDsukcRTAkqy3LtERq2VTYLTFoO0M05MdKJlBkzDozOFd9KgSN7krwmB SMmQ== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=OqAjRpyzDY8LNY98Ify/oJ+tQz7duPHzYFDxT7uYPaw=; b=MUJNyZ0ruZnILhgNn4z4LEW1dYQQ7PHEBDkoLBF1lcyYNTC0LVefWJexYMF7tepFnp RdVkLPipWTcx+j3v2MAvchJv00muQcnz6ds0vT9MqjCOtoqDtxHRuFmXsu3Cfy3+ZGlW mPXpnUiH/LJhjFKV4Rcg12zKIO3p+yz1Q0h5BDE4rx2pHssyrAqVUqK57GK6Y3KnrZh8 BwJ4xwWNQbu6SzPmtzxmLhY55GTlAR8LB/oK3/FupW9lO83HNiZ8Wvs259HYWCh2tRNS 7KcnVYZtUahFL7UAWDuNI/k0kpoyKOzjAN/KX5rIaUDaL5RHf9K5pHfnOygPG0u440Dq 1zTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector1 header.b=nxnWk90M; 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=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q61si10466249plb.245.2019.03.18.10.11.56; Mon, 18 Mar 2019 10:12:13 -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=@hammerspace.com header.s=selector1 header.b=nxnWk90M; 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=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727122AbfCRRLO (ORCPT + 99 others); Mon, 18 Mar 2019 13:11:14 -0400 Received: from mail-eopbgr710127.outbound.protection.outlook.com ([40.107.71.127]:34944 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726777AbfCRRLN (ORCPT ); Mon, 18 Mar 2019 13:11:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OqAjRpyzDY8LNY98Ify/oJ+tQz7duPHzYFDxT7uYPaw=; b=nxnWk90MAelLaaM/22wOL2PEPZYGlF/PnAiUDaCdMnZFWdHc8G9VtFXDuj4gLaW5N92W4Metw9qVNAeWKrZnNfASHnXq+1ibrExt54+cxZH+brXcX68zD9+gEYi/jojf7IdvrLFd1d7suRf7zvQfr1gqJL8cnwlWTiAFGXGgE5U= Received: from SN6PR13MB2494.namprd13.prod.outlook.com (52.135.95.148) by SN6PR13MB2429.namprd13.prod.outlook.com (52.135.94.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.9; Mon, 18 Mar 2019 17:11:09 +0000 Received: from SN6PR13MB2494.namprd13.prod.outlook.com ([fe80::d1d6:9683:8c9b:3dcb]) by SN6PR13MB2494.namprd13.prod.outlook.com ([fe80::d1d6:9683:8c9b:3dcb%3]) with mapi id 15.20.1730.003; Mon, 18 Mar 2019 17:11:09 +0000 From: Trond Myklebust To: "catalin.marinas@arm.com" , "linux-nfs@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "anna.schumaker@netapp.com" , "neilb@suse.com" , "stable@vger.kernel.org" Subject: Re: [PATCH] NFS: Fix nfs4_lock_state refcounting in nfs4_alloc_{lock,unlock}data() Thread-Topic: [PATCH] NFS: Fix nfs4_lock_state refcounting in nfs4_alloc_{lock,unlock}data() Thread-Index: AQHU3awd9iQEYbfPS0GRAmU5BTgR16YRn86A Date: Mon, 18 Mar 2019 17:11:09 +0000 Message-ID: <9cee20976d23acb18c4925b3cc55d34c1369ae83.camel@hammerspace.com> References: <20190318170028.61423-1-catalin.marinas@arm.com> In-Reply-To: <20190318170028.61423-1-catalin.marinas@arm.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [68.40.189.247] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b6a79034-af5b-472c-9a71-08d6abc4b74b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:SN6PR13MB2429; x-ms-traffictypediagnostic: SN6PR13MB2429: x-microsoft-antispam-prvs: x-forefront-prvs: 098076C36C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(396003)(376002)(39830400003)(346002)(189003)(199004)(53936002)(6436002)(229853002)(6512007)(8936002)(68736007)(478600001)(8676002)(81156014)(81166006)(14454004)(86362001)(3846002)(6486002)(256004)(14444005)(6116002)(36756003)(97736004)(99286004)(25786009)(5660300002)(106356001)(105586002)(76176011)(476003)(186003)(6246003)(102836004)(71190400001)(446003)(11346002)(486006)(6506007)(118296001)(2501003)(4326008)(316002)(6346003)(110136005)(305945005)(54906003)(7736002)(2906002)(66066001)(2616005)(26005)(71200400001)(142933001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN6PR13MB2429;H:SN6PR13MB2494.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: hammerspace.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=trondmy@hammerspace.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: AwSk8y0nKDnaSkzu08lfgyHEJFJkR6BHo+TMh1nBz3LN9qcp2ua7f8Ke7s0VJo77UqI9HlZZfsvr3yWKClDhVlOdpSjzd9jwmrkLmVagGLiwFKwUF08kOWXFyi/IUHPDGkZACjHfw4rF0+7DluNtYsvgGL/vXixNUJzbJ0LCqtw+gvv9fNmCPowakWu5k2zocm9IKntrmAKWQeG8EGhZbTROysr5EDryfP77nqo6etPHRPPRbPRLoyG/F/UUveimufZNs1pFFb5RhzMApy/Rd4FRJpjvTFE7yRys4cc7G8DXulvZH4KF13fH+J0VTmWoo8z73U6WlWqWNw7kLEPQ9SXPMCZmjmf1SXFl39rNQYhsnF4UBlQ8zBHRmrcYh+B19bY3wyaKDa0s13RRwg4ZHAIxEBQA5gdHBbByt2JTEbc= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6a79034-af5b-472c-9a71-08d6abc4b74b X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2019 17:11:09.4967 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR13MB2429 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDE5LTAzLTE4IGF0IDE3OjAwICswMDAwLCBDYXRhbGluIE1hcmluYXMgd3JvdGU6 DQo+IENvbW1pdCA3YjU4N2UxYTVhNmMgKCJORlM6IHVzZSBsb2Nrc19jb3B5X2xvY2soKSB0byBj b3B5IGxvY2tzLiIpDQo+IGNoYW5nZWQgdGhlIGxvY2sgY29weWluZyBmcm9tIG1lbWNweSgpIHRv IHRoZSBkZWRpY2F0ZWQNCj4gbG9ja3NfY29weV9sb2NrKCkgZnVuY3Rpb24uIFRoZSBsYXR0ZXIg Y29ycmVjdGx5IGluY3JlbWVudHMgdGhlDQo+IG5mczRfbG9ja19zdGF0ZS5sc19jb3VudCB2aWEg bmZzNF9mbF9jb3B5X2xvY2soKSwgaG93ZXZlciwgdGhpcw0KPiByZWZjb3VudA0KPiBoYXMgYWxy ZWFkeSBiZWVuIGluY3JlbWVudGVkIGluIHRoZSBuZnM0X2FsbG9jX3tsb2NrLHVubG9ja31kYXRh KCkuDQo+IEttZW1sZWFrIHN1YnNlcXVlbnRseSByZXBvcnRzIGFuIHVucmVmZXJlbmNlZCBuZnM0 X2xvY2tfc3RhdGUgb2JqZWN0DQo+IGFzDQo+IGJlbG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