Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1882093pxf; Fri, 26 Mar 2021 18:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOJLHqVO7PPF4+pkgKWqSP6maAtDdCylw0D44UlegWDpFYIbSpu7P5nGBJGUprcCffEQGs X-Received: by 2002:a17:906:3e89:: with SMTP id a9mr17458016ejj.405.1616808821511; Fri, 26 Mar 2021 18:33:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616808821; cv=pass; d=google.com; s=arc-20160816; b=M6uRX3Avt6bRY0KcdSeOKdXzHAWu2GfJa33qYlCSh+u0tlAWY1r0XnnN68woN0o9rT 5waqiR50wWfwRmTsQeN1RKWVe5jihIKtcB5hnxNeSg6sPP3SBJZxATSUSjO2j+7tcG42 vvXdSjz7dHIuDm/Z2V9nZxFe/5X5VOwaKn02TQoUqzmaHmmIf0XOenjQShwAabYeCy2/ SjzPneSqLR/EduMNL8SsjaR07R8Ui0osf1O1edeVmLf1QSSZPqoGv1hsKMVigVpmLPU+ MiK6FIUO5ZikfC7eK5Wa2o9r6Pc7xjGBhR66xqaS0rhJdPbPGere85zmrv8VpPvF3it0 O38g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=5p6cMCIT3fAhTZCQYnov4WOsaH3ZWeXOfrdBrvfgWBY=; b=KKhO9O4Dg9PUro6L9pA5XJT7DL58wJBT9V2m994W+29pcGCUzMOTJpI1e/THxLLV0G k7u9PpojOr7C5r/1cn67YJJcPoKXXAJO9KOUIY+nicezoRzTtdn+Q/eLWvCoBwnJzF8X jhvEmgeC26vMzYYcCviDYq7KHhaZh7HKRNOtIYwbJJv9XEihurMFIzDCEHmaL6Ul4fVf tU6MPY1lj0TPH/Tfnhz+SGcxwj7WmP++YiPRKP8TYs21TRpqaPxlXpdw/Soq7cw5L3rn vOoBPz5U2uQmFGPY6/OXUvhVaJZq5RO7d8wZY8ELmlZse/Mqvyo30i4Wu/qDqEIGDj3z FYyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=ZXNpdY3m; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si8137763ejc.80.2021.03.26.18.33.17; Fri, 26 Mar 2021 18:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=ZXNpdY3m; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbhC0BO0 (ORCPT + 99 others); Fri, 26 Mar 2021 21:14:26 -0400 Received: from mail-mw2nam10on2061.outbound.protection.outlook.com ([40.107.94.61]:29029 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229969AbhC0BNs (ORCPT ); Fri, 26 Mar 2021 21:13:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0Z8J5xE7WMjigFJjqDBK2j9YGtxfzd2iIUYoqmDMA1qZhYmJE1AuDuSp2zb6DKcyP8fqQyJYotRPBb47crlW0bPBH469c4N3zghlWwo6rB/SG6g0Iq2Gz8kDuJRrtGJCPELrTry7AC0TV4Kk80EFh0eDfJnSd9zA+FM27UpvN+WytjOYv0tsR8gXQjkmr663bhQU46M/LwFoXeVGAiQI9khDT6QwBchv9Lj6aLGOPyLvKn5QNBthmvawsvSQ1RCjSAupjYaT+5Xmtmbh1OPvzpVBMPsIViVRh+Ij30RmqwrcJc6oQGGyR3Fq0Qb+fTSQTKIs7OYc0Q3aYkjuxzbQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5p6cMCIT3fAhTZCQYnov4WOsaH3ZWeXOfrdBrvfgWBY=; b=kWjOUkYv/HBTxWAO1f/TUjd2yLa7rcwtKjhZuT+f9fG/PH6o1lLHLXg4Jdi+0odsvWQgaaIvfuTiDYGi0u0TuzsJsPBG9vSF4qIMre1uAuVQSH9KByUckuw0TfW8fG+MA07736lOsbLSxojv/SGJ7tegGDE8t6NkegOmIgRuTs+ntchFhyV0X4H7lFju04sfXw5JJCAaeLZFdIOGfsK4DjZClBHrYxT/n4GOe5Z9ROIrMEFZj1lqZz2ltSauBFb6fmm91ZbWxSdZqeU84xPZt1W7eYLQL1Qet2T+h0RATmJcSn6JCfzh98jGBYZsSkewS8ENdWyl6fCZ4gd7L6kbYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5p6cMCIT3fAhTZCQYnov4WOsaH3ZWeXOfrdBrvfgWBY=; b=ZXNpdY3mvWKYgHCVDBrlFakmlS7lm+T7aMpHPye6Jm/JajRbgQCyeCWjVlg0KvRaoHLE47BEjMwMjaq3XpKc85KI/yzmte5cuyOeaYQ29ZJLQNu94/jnw3hsmdpuRtrvkL+8aQH72/hTWm+f1ZNfYDxpKTj68aq8oQnZkso/dyA= Received: from DM6PR11MB4202.namprd11.prod.outlook.com (2603:10b6:5:1df::16) by DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Sat, 27 Mar 2021 01:13:45 +0000 Received: from DM6PR11MB4202.namprd11.prod.outlook.com ([fe80::60c5:cd78:8edd:d274]) by DM6PR11MB4202.namprd11.prod.outlook.com ([fe80::60c5:cd78:8edd:d274%5]) with mapi id 15.20.3977.025; Sat, 27 Mar 2021 01:13:45 +0000 From: "Zhang, Qiang" To: Pavel Tatashin CC: Jens Axboe , "linux-block@vger.kernel.org" , LKML Subject: =?gb2312?B?u9i4tDogW1BBVENIIHYyXSBsb29wOiBjYWxsIF9fbG9vcF9jbHJfZmQoKSB3?= =?gb2312?Q?ith_lo=5Fmutex_locked_to_avoid_autoclear_race?= Thread-Topic: [PATCH v2] loop: call __loop_clr_fd() with lo_mutex locked to avoid autoclear race Thread-Index: AQHXIh5/YbAOAsLfeUq4Djn6mramUKqWzTCAgAA4u+U= Date: Sat, 27 Mar 2021 01:13:45 +0000 Message-ID: References: <20210326090057.30499-1-qiang.zhang@windriver.com>, In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: soleen.com; dkim=none (message not signed) header.d=none;soleen.com; dmarc=none action=none header.from=windriver.com; x-originating-ip: [106.39.150.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e571a421-b3a9-445c-071b-08d8f0bd918f x-ms-traffictypediagnostic: DM5PR11MB1242: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1091; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /RuMCpBdpNdjhagiM79IL1xtqQIv28BfogQOwuP5az65+/FfoI1jzFz/CHpMNt8kaMyEQOZYb2bOH7l5xCPkSl5OU51BHKFCte2UeOF43DijMS7iSxIrup7Esd7eB/TKWe59+Gbg9UKEY2FLfx066Bg4Xnbt2LXEI1T06URQ7kT3pS6ein4MuDnobTTeRVaZTMSuvnvVvm0y/PBQaZy+PC41TEnD+HIatDYwcE0kaOhEUuwtgBcUCg1gMJx4MmjFZx3JKy/5A/d8336Cm0neigDag/xsEfD13/YyyzO0qYYx4A3jlttVzcrzcdRlaZzZVnzfE8l/k8p9dS3rm1xHaX2OE+Vhk47ZpQO+wqLGZ9lQ3vl/xDOmin+CtaM/EC6TDKj1mXt9HZZi63gvBg98Jkvqy8VItYcGV9LE3Q7K6moLGm+zNYjSP3SDb7t1kPEqLGZ0uB0nGwqmSFuVuowOqYkFkxpHRJ4eyZsRBs9r6cONmEe2ZmXsFgZWJRYJLsMBS3dCMSotphkOQnmu9JkXG4APRK+XCGPwFBojzspWRnlnugVNUPd4xVJ+lAU82ZVtD4u8M1oUX2OMOfBXRc0iBfpGQ/ZL2ktTos5l70N/A3rTFkJqehDvmg+Ldr07DgFa5u8Pmbu4DU6IEszdUVXJ5g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4202.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(346002)(39850400004)(376002)(396003)(7696005)(6916009)(33656002)(66556008)(6506007)(38100700001)(53546011)(66476007)(83380400001)(64756008)(478600001)(86362001)(66446008)(5660300002)(8936002)(9686003)(316002)(52536014)(224303003)(2906002)(26005)(55016002)(186003)(71200400001)(91956017)(4326008)(76116006)(54906003)(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gb2312?Q?xZkrDvVXgyLACEUj9U=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4202.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e571a421-b3a9-445c-071b-08d8f0bd918f X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2021 01:13:45.2591 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LLQmDXuJ+ABPyZ/GgnIWL/ao1UyzYST8gj+WiGlm7jPOzN+fMjYrAjFh9HP2IWj/V50K0QvdrbxyKRXbrAcXaduTwO5NR8Fgb6TuXuygzws= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1242 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCreivP7IyzogUGF2ZWwg VGF0YXNoaW4gPHBhc2hhLnRhdGFzaGluQHNvbGVlbi5jb20+Creiy83KsbzkOiAyMDIxxOoz1MIy N8jVIDU6NDEKytW8/sjLOiBaaGFuZywgUWlhbmcKs63LzTogSmVucyBBeGJvZTsgbGludXgtYmxv Y2tAdmdlci5rZXJuZWwub3JnOyBMS01MCtb3zOI6IFJlOiBbUEFUQ0ggdjJdIGxvb3A6IGNhbGwg X19sb29wX2Nscl9mZCgpIHdpdGggbG9fbXV0ZXggbG9ja2VkIHRvIGF2b2lkIGF1dG9jbGVhciBy YWNlCgpbUGxlYXNlIG5vdGU6IFRoaXMgZS1tYWlsIGlzIGZyb20gYW4gRVhURVJOQUwgZS1tYWls IGFkZHJlc3NdCgpPbiBGcmksIE1hciAyNiwgMjAyMSBhdCA1OjAwIEFNIDxxaWFuZy56aGFuZ0B3 aW5kcml2ZXIuY29tPiB3cm90ZToKPgo+IEZyb206IFpxaWFuZyA8cWlhbmcuemhhbmdAd2luZHJp dmVyLmNvbT4KPgo+IGxvLT5sb19yZWZjbnQgPSAwCj4KPiAgICAgICAgICAgICBDUFUwICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgQ1BVMQo+IGxvX29wZW4oKSAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIGxvX29wZW4oKQo+ICBtdXRleF9sb2NrKCZsby0+bG9fbXV0 ZXgpCj4gIGF0b21pY19pbmMoJmxvLT5sb19yZWZjbnQpCj4gIGxvX3JlZmNudCA9PSAxCj4gIG11 dGV4X3VubG9jaygmbG8tPmxvX211dGV4KQo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIG11dGV4X2xvY2soJmxvLT5sb19tdXRleCkKPiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdG9taWNfaW5jKCZsby0+bG9fcmVmY250 KQo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvX3JlZmNu dCA9PSAyCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbXV0 ZXhfdW5sb2NrKCZsby0+bG9fbXV0ZXgpCj4gbG9vcF9jbHJfZmQoKQo+ICBtdXRleF9sb2NrKCZs by0+bG9fbXV0ZXgpCj4gIGF0b21pY19yZWFkKCZsby0+bG9fcmVmY250KSA+IDEKPiAgbG8tPmxv X2ZsYWdzIHw9IExPX0ZMQUdTX0FVVE9DTEVBUiAgICAgICAgbG9fcmVsZWFzZSgpCj4gIG11dGV4 X3VubG9jaygmbG8tPmxvX211dGV4KQo+ICByZXR1cm4gICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIG11dGV4X2xvY2soJmxvLT5sb19tdXRleCkKPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgYXRvbWljX2RlY19yZXR1cm4oJmxvLT5sb19yZWZj bnQpCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9fcmVm Y250ID09IDEKPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBt dXRleF91bmxvY2soJmxvLT5sb19tdXRleCkKPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICByZXR1cm4KPgo+IGxvX3JlbGVhc2UoKQo+ICBtdXRleF9sb2NrKCZs by0+bG9fbXV0ZXgpCj4gIGF0b21pY19kZWNfcmV0dXJuKCZsby0+bG9fcmVmY250KQo+ICBsb19y ZWZjbnQgPT0gMAo+ICBsby0+bG9fZmxhZ3MgJiBMT19GTEFHU19BVVRPQ0xFQVIKPiAgID09IHRy dWUKPiAgbXV0ZXhfdW5sb2NrKCZsby0+bG9fbXV0ZXgpICAgICAgICAgICAgICBsb29wX2NvbnRy b2xfaW9jdGwoKQo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBj YXNlIExPT1BfQ1RMX1JFTU9WRToKPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIG11dGV4X2xvY2soJmxvLT5sb19tdXRleCkKPiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGF0b21pY19yZWFkKCZsby0+bG9fcmVmY250KT09MAo+ ICAgX19sb29wX2Nscl9mZChsbywgdHJ1ZSkgICAgICAgICAgICAgICAgICAgbXV0ZXhfdW5sb2Nr KCZsby0+bG9fbXV0ZXgpCj4gICAgIG11dGV4X2xvY2soJmxvLT5sb19tdXRleCkgICAgICAgICAg ICAgICAgbG9vcF9yZW1vdmUobG8pCj4gICAgICAgICAgICAgICAgICAgICAgICA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BtdXRleF91bmxvY2soJmxvLT5sb19tdXRl eCk7Cj4KPiAgICAgICAgIC8qCj4gICAgICAgICAgKiBOZWVkIG5vdCBob2xkIGxvX211dGV4IHRv IGZwdXQgYmFja2luZyBmaWxlLiBDYWxsaW5nIGZwdXQgaG9sZGluZwo+IEBAIC0xMzMyLDkgKzEz MjksMTAgQEAgc3RhdGljIGludCBsb29wX2Nscl9mZChzdHJ1Y3QgbG9vcF9kZXZpY2UgKmxvKQo+ ICAgICAgICAgICAgICAgICByZXR1cm4gMDsKPiAgICAgICAgIH0KPiAgICAgICAgIGxvLT5sb19z dGF0ZSA9IExvX3J1bmRvd247Cj4gKyAgICAgICBlcnIgPSBfX2xvb3BfY2xyX2ZkKGxvLCBmYWxz ZSk7Cj4gICAgICAgICBtdXRleF91bmxvY2soJmxvLT5sb19tdXRleCk7Cj4KPiAtICAgICAgIHJl dHVybiBfX2xvb3BfY2xyX2ZkKGxvLCBmYWxzZSk7Cj4gKyAgICAgICByZXR1cm4gZXJyOwo+ICB9 Cj4KPiAgc3RhdGljIGludAo+IEBAIC0xOTE2LDEzICsxOTE0LDEyIEBAIHN0YXRpYyB2b2lkIGxv X3JlbGVhc2Uoc3RydWN0IGdlbmRpc2sgKmRpc2ssIGZtb2RlX3QgbW9kZSkKPiAgICAgICAgICAg ICAgICAgaWYgKGxvLT5sb19zdGF0ZSAhPSBMb19ib3VuZCkKPiAgICAgICAgICAgICAgICAgICAg ICAgICBnb3RvIG91dF91bmxvY2s7Cj4gICAgICAgICAgICAgICAgIGxvLT5sb19zdGF0ZSA9IExv X3J1bmRvd247Cj4gLSAgICAgICAgICAgICAgIG11dGV4X3VubG9jaygmbG8tPmxvX211dGV4KTsK PiAgICAgICAgICAgICAgICAgLyoKPiAgICAgICAgICAgICAgICAgICogSW4gYXV0b2NsZWFyIG1v ZGUsIHN0b3AgdGhlIGxvb3AgdGhyZWFkCj4gICAgICAgICAgICAgICAgICAqIGFuZCByZW1vdmUg Y29uZmlndXJhdGlvbiBhZnRlciBsYXN0IGNsb3NlLgo+ICAgICAgICAgICAgICAgICAgKi8KPiAg ICAgICAgICAgICAgICAgX19sb29wX2Nscl9mZChsbywgdHJ1ZSk7Cj4gLSAgICAgICAgICAgICAg IHJldHVybjsKPiArICAgICAgICAgICAgICAgZ290byBvdXRfdW5sb2NrOwo+ICAgICAgICAgfSBl bHNlIGlmIChsby0+bG9fc3RhdGUgPT0gTG9fYm91bmQpIHsKPiAgICAgICAgICAgICAgICAgLyoK PiAgICAgICAgICAgICAgICAgICogT3RoZXJ3aXNlIGtlZXAgdGhyZWFkIChpZiBydW5uaW5nKSBh bmQgY29uZmlnLAo+IC0tCj4gMi4xNy4xCj4K