Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1173538pxf; Fri, 26 Mar 2021 02:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOLdFl7EznxxRz1QHgRIbRw9cFe+aiPdAHWG9TinVyRShS2gDBk67P9CvSIBAI95UU8sFp X-Received: by 2002:aa7:dc49:: with SMTP id g9mr13594932edu.60.1616751526675; Fri, 26 Mar 2021 02:38:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616751526; cv=pass; d=google.com; s=arc-20160816; b=dYUmnIBvHWok4S8gBnO6HaYXdq84gPIzyIDc+UoPT9rY6zLdfyQjeZgrXWtSPGq7i0 0e3urpdB6vAxWqMUyMRFX0Zo5zZMy/ayXUxp47/QPtT0eduq6MJPHCQE014usP0S1mGs 7EAX4u9PA+EXDovKHNwSwoGGA80//ajtd1ZXLoQ9JeWNfSKMMaMCrh0Z+s6zWgM21GJi sM+3kGTJmA/a9rBMlqxy9cX7OomNTBbCOKnMHmX0OnmtMGMGEeyBs400cAm71YmdQVjU 0vfICinThHwbj6cRdhpwhq8IRsHAqlouF3/Nt1xAtu55RBnmJpc6ivGf46QJKda+fI+N Lleg== 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=D1b3+JeKCkjMm8UWyvgiYPVPUCp07SJsIGl80DOSE3Y=; b=iFD7U4H0sD3/GdPu9wqE6hJi9GjcqMMYc1ATLQME+xM8heRF1pRtcB5Gqv08UYsa5E wxYDQ9Txt1YZH8l01fh4HNfVOAJ1puYwbgHooOM9XBmuS1ec8FE4Hln3DTdtpNJnPOWo TS5TqfelcsA4V2+0bmRDO26xKtBJIV7ge34OvO2wAa/7NY57CvxQfVLL4PrwOpL1tHep abwGLSaGXGTtk+ZKTpwLvnRUnPlm1kaXuEAFeGxsyr5fchDkd8G0wZ0fSxdV9M0XTd0F K1vCDPZTh8SQrAM8dh/NZOesD04n/j6IXwNGXI9jvll5BeYWKUVAGPEFML3hgBEVeCRx EFMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=pSTadXkj; 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 d5si6465779ejm.476.2021.03.26.02.38.23; Fri, 26 Mar 2021 02:38:46 -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=pSTadXkj; 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 S230355AbhCZJhO (ORCPT + 99 others); Fri, 26 Mar 2021 05:37:14 -0400 Received: from mail-dm6nam11on2060.outbound.protection.outlook.com ([40.107.223.60]:39595 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230006AbhCZJgq (ORCPT ); Fri, 26 Mar 2021 05:36:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hx32GGRO8fl+0IVhfsPW/yMCaPcRElVX+wBW3fwrrU3Oob61653cd3xtnHMgT68D7nt2MhpwcRORDsHSG9zn5AB97t4TGt1p02/I20gk7bj55Ha7nN8hXCdZahQ8E8sszn3I5bFn7RE+IUDOYKJmrFbu5+dI517XJcOIBXMe76fjpEnShwebWSIgLlajVyBJXAVJgQFqp6YcMexpPZAYheJmFCjTWdEvARr+Fl8+hodwryRXtE1lRJG7dGUGeFCKcaksG4XWTpaQqL2DRXphtvM0AJE7F1sB3+acOmPD4Hj61HuCpC0KVHNSTodWJV40gKQYLzqTFKrd5Q8hhBSr2A== 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=D1b3+JeKCkjMm8UWyvgiYPVPUCp07SJsIGl80DOSE3Y=; b=DMruGSOedL1dKbVpEoK6T/alucOmV5gFqUDhfmXdGAjd8blEDRpkEWvQJanWBUqaFRmyZtHGry5W14WJj7FZMQ2OI09oDAAW+tr7Tk4JgCzPIJg8XXlcvhRoYBuzoIEJnrRG9G9gh0xG+j45jXEpKQomDlNDUsoyHZEMtSDek51fJ08mHUNMl3N8FM4am2HuNYZ+UeCoBPzatHTh+DrNim1RybQyAgmiWrQ/tIFwz68+kvlGSYz4O5OMMot9AbSdqOVf6kiiSp+kaxeDbxAEnpsVNosLOyBkK2QV08IvX2ivMwisHfb615GDvpo73syEsq0Bsdq9RyOQj1m0N9UhYQ== 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=D1b3+JeKCkjMm8UWyvgiYPVPUCp07SJsIGl80DOSE3Y=; b=pSTadXkjuWDKQxhmCDNV+Ala6DaOru1C4Xn2mCU4IF2rNbZOwkn8/iOu66ClmVbqvNfH+k1Zjfh2vCe23xN1/ruPMNNAucZTw7UVUYoVg7i+T4FioJ8uSFpPsceHX0tSlVs7ex7TiyjYtPW69pdtRd2EpSlxc2WJ/ZZRsAUMn8g= Received: from DM6PR11MB4202.namprd11.prod.outlook.com (2603:10b6:5:1df::16) by DM5PR11MB1691.namprd11.prod.outlook.com (2603:10b6:3:b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Fri, 26 Mar 2021 09:36:44 +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; Fri, 26 Mar 2021 09:36:44 +0000 From: "Zhang, Qiang" To: Pavel Tatashin CC: Jens Axboe , "linux-block@vger.kernel.org" , LKML Subject: =?gb2312?B?u9i4tDogW1BBVENIXSBsb29wOiBGaXggdXNlIG9mIHVuc2FmZSBsby0+bG9f?= =?gb2312?Q?mutex_locks?= Thread-Topic: [PATCH] loop: Fix use of unsafe lo->lo_mutex locks Thread-Index: AQHXIVhIOFjKQavTx0Ciyxtr6hqn7KqUrYiAgAFR1PY= Date: Fri, 26 Mar 2021 09:36:44 +0000 Message-ID: References: <20210325092203.10251-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: [60.247.85.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a7637a9-bc46-435d-faec-08d8f03aab59 x-ms-traffictypediagnostic: DM5PR11MB1691: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: n4tFnqJp5PKQaDzhl6ZpXFjfs6eT8zN/wfXGITxWdQtn/pTQeILtVL0HfOD33uBFsMHb/XbbrYIm8o1OzZGQKY+PwvqzZo83R99sagB45eEbBaR9xqb/UZvqeI8LYq40GXknGG54f7vBGhTMFjpFsuxxtON5TKxmtM/S3Q4vv0jDUT+Y6cnw1itvOqNd0Xl+LSrvW/adAcoFNh9YJK3yBGzVabJEg6Yqnfy4ep51742Fxu0qo4FXzvNQvvG2hct1pZTMNHMjey36huTgKVt6xGd/ge5mZ7PLJeGje/J5cNwi+uGxndFIlisGHcFJAs+dRgkTTFkvhy6TGTHngadM0Ql8Zwv4J+PXcWEu7So1+tlRIhQD6HcnLuUZThiXJJ7Ov3VnloX97zUx+If1XImtirDjQ6WJ8fJA2SBh3y01vVE2GVzoMXBHxIuLnEMMJ0Exu8eHBN3YW+hkQ03IgW4NyE35Enu0208mgn43E2q5OA5rF/6jEYkHGKi6LEWAYG59uWJjbRv7AnnvHMzDXjzPUXqTLKWcv07fJTxQb0TklTZjIudWIpdFuhIRMjD6NozGiPXgOfmIgfIuWM7QjuVFYQy6p69eCArV4gUT8Oi2Ud3uvpPHwi3XbsD14GOTdPxvr2V34UWFkGW8kE7H6FL/4A== 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)(39850400004)(396003)(376002)(366004)(346002)(76116006)(66476007)(52536014)(64756008)(2906002)(6916009)(33656002)(86362001)(316002)(66446008)(54906003)(6506007)(91956017)(55016002)(4326008)(5660300002)(66946007)(9686003)(71200400001)(478600001)(7696005)(26005)(186003)(66556008)(83380400001)(224303003)(8936002)(38100700001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?gb2312?B?YmdxRWljdnA3VWtobHkrRW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rV05LazgySEkrWExmLytkUEdpbm9PMlc2eWRrenUxS01mZ0d0dDNGQmNQ?= =?gb2312?B?UXFWckV2SXAveG81RHVGbjNhcWVvclpJZjFGWDNzemIxcE5WVm9maStRUWhy?= =?gb2312?B?ZyswcHFtV1RBWjRzS0FyY2ZibXVNS3ptT210b0Jtck5VckZ0R2FhYmlMV210?= =?gb2312?B?N1JVZnBtNzhPcDRtNzV0YzJBSVQ5NWptSzhUT3JFMUs1ZFRGZjBidS9rREhO?= =?gb2312?B?amlhcHVOWDRKY0ZIbExIcjMxU1Y3enhQUUJ2TkJqdDE2Qk5iYjJoUVNhRStv?= =?gb2312?B?VkY0OW91aDBlWG5ENDNzSTVFY3Z4OHZGS3BEV1RiMjdJUCtMU1Z3bVp4Sm1M?= =?gb2312?B?UWVsSEZwdk5SN0REVm9XUHhYdHI1OGFZS01Yc2JmTG1qTFY3bGJTTm5Ha2pT?= =?gb2312?B?UVJ3SjJTZ0Y5eDluKzNPbVVwUHp1U2lLWjQwOFVKemkzd2tOR2dhVWdzbWN0?= =?gb2312?B?WktJZTNEZjNkdFpJY1Y3Q2FHZElYOEcrOHRCamJFNkMydFI3L1VEYW81MWFo?= =?gb2312?B?c2EveTZWdWk1U2VuanZwSnNaZERkZFp2WVBuR2Z2SzRTK2xjbTNDRmRtT2s0?= =?gb2312?B?Rjl0Q0NJZVcwb2hLWnF2VEg0U0lMZkxjay9pS3RlRHlaUlA3UXE4WWxuQ3RU?= =?gb2312?B?NGhaOFJBdC95eTB0SXdGOVNXWUdEcm5PU1dKa3JickMyelRJcXF4Rmk2Uzln?= =?gb2312?B?U2RmbUIrNUg1bkdNd2V1cS9DSXJwN1kya25pT3VoZGpYKzliSTN5Z2ZiWjd5?= =?gb2312?B?dS9NaVR3MVloTHJ6VXIzaC9Cenh0blFnZEoyMVhhTlBUVzk0Tm1wNm8wWmNu?= =?gb2312?Q?HojX4+4Amzuod6oh6k=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: 0a7637a9-bc46-435d-faec-08d8f03aab59 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2021 09:36:44.5416 (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: frRye2JTmoD4COrO0rB8UkKPxJVV4dxd8zWAtQHaqIMzX2FIoeQmCJ7PcxEfpfD5xhZvFT4FkwWhGAH7AgPMBsSMFaf3t2JjjxgdJt84Wj4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1691 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCreivP7IyzogUGF2ZWwg VGF0YXNoaW4gPHBhc2hhLnRhdGFzaGluQHNvbGVlbi5jb20+Creiy83KsbzkOiAyMDIxxOoz1MIy NcjVIDIxOjA5CsrVvP7IyzogWmhhbmcsIFFpYW5nCrOty806IEplbnMgQXhib2U7IGxpbnV4LWJs b2NrQHZnZXIua2VybmVsLm9yZzsgTEtNTArW98ziOiBSZTogW1BBVENIXSBsb29wOiBGaXggdXNl IG9mIHVuc2FmZSBsby0+bG9fbXV0ZXggbG9ja3MKCltQbGVhc2Ugbm90ZTogVGhpcyBlLW1haWwg aXMgZnJvbSBhbiBFWFRFUk5BTCBlLW1haWwgYWRkcmVzc10KCj5IaSBRaWFuZywKPgo+VGhhbmsg eW91IGZvciByb290IGNhdXNpbmcgdGhpcyBpc3N1ZS4gRGlkIHlvdSBlbmNvdW50ZXIgdGhpcyBp c3N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xvb3BfZGV2aWNlICpsbykKPiAgICAgICAg ICAgICAgICAgcmV0dXJuIDA7Cj4gICAgICAgICB9Cj4gICAgICAgICBsby0+bG9fc3RhdGUgPSBM b19ydW5kb3duOwo+ICsgICAgICAgZXJyID0gX19sb29wX2Nscl9mZChsbywgZmFsc2UpOwo+ICAg ICAgICAgbXV0ZXhfdW5sb2NrKCZsby0+bG9fbXV0ZXgpOwo+Cj4gLSAgICAgICByZXR1cm4gX19s b29wX2Nscl9mZChsbywgZmFsc2UpOwo+ICsgICAgICAgcmV0dXJuIGVycjsKPiAgfQo+Cj4gIHN0 YXRpYyBpbnQKPiBAQCAtMTkxNiwxMyArMTkxNCwxMiBAQCBzdGF0aWMgdm9pZCBsb19yZWxlYXNl KHN0cnVjdCBnZW5kaXNrICpkaXNrLCBmbW9kZV90IG1vZGUpCj4gICAgICAgICAgICAgICAgIGlm IChsby0+bG9fc3RhdGUgIT0gTG9fYm91bmQpCj4gICAgICAgICAgICAgICAgICAgICAgICAgZ290 byBvdXRfdW5sb2NrOwo+ICAgICAgICAgICAgICAgICBsby0+bG9fc3RhdGUgPSBMb19ydW5kb3du Owo+IC0gICAgICAgICAgICAgICBtdXRleF91bmxvY2soJmxvLT5sb19tdXRleCk7Cj4gICAgICAg ICAgICAgICAgIC8qCj4gICAgICAgICAgICAgICAgICAqIEluIGF1dG9jbGVhciBtb2RlLCBzdG9w IHRoZSBsb29wIHRocmVhZAo+ICAgICAgICAgICAgICAgICAgKiBhbmQgcmVtb3ZlIGNvbmZpZ3Vy YXRpb24gYWZ0ZXIgbGFzdCBjbG9zZS4KPiAgICAgICAgICAgICAgICAgICovCj4gICAgICAgICAg ICAgICAgIF9fbG9vcF9jbHJfZmQobG8sIHRydWUpOwo+IC0gICAgICAgICAgICAgICByZXR1cm47 Cj4gKyAgICAgICAgICAgICAgIGdvdG8gb3V0X3VubG9jazsKPiAgICAgICAgIH0gZWxzZSBpZiAo bG8tPmxvX3N0YXRlID09IExvX2JvdW5kKSB7Cj4gICAgICAgICAgICAgICAgIC8qCj4gICAgICAg ICAgICAgICAgICAqIE90aGVyd2lzZSBrZWVwIHRocmVhZCAoaWYgcnVubmluZykgYW5kIGNvbmZp ZywKPiAtLQo+IDIuMTcuMQo+Cgo+TEdUTQo+UmV2aWV3ZWQtYnk6IFBhdmVsIFRhdGFzaGluIDxw YXNoYS50YXRhc2hpbkBzb2xlZW4uY29tPgo+Cj5UaGFuayB5b3UsCj5QYXNoYQo=