Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp878496pxf; Wed, 7 Apr 2021 13:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRtwoHUxNjMzyD8PdETxX1Rfu4dt3YBCKvvABhh1N8e0e4q6b3Ho+EV4lopMQyVMX6LVB4 X-Received: by 2002:a17:906:298b:: with SMTP id x11mr6003970eje.43.1617829155702; Wed, 07 Apr 2021 13:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829155; cv=none; d=google.com; s=arc-20160816; b=YyQkxPpqZN8jjeqnpGa6hOrJtR1fty0l38W3cZNv4Aokw284OX5JaLQfjZ2QtunDhL bcPCh9hGGvXI8TKYdrpm5o7D8Ce2OlSpNVw2xoR5zC01NB8/O7Hky1d4ptja+3E64ck0 DiWgx1DcLlPnCJMg/6lgp7EBy5JAcRw+UpalXengrU9k+PRX3zzM71WxeYojdZovoamp PW8YvwffSV+ivDeYXwlxcUienCVFPu871WTwLSyZWKGF1VcARVZ/YZ0bsDOAlil2M6cU TRDYG6Ku+0DsatG7+tBLd3Z9F/c+heIFXbfmArFp99lfBU7Jm5Fy3CGFhTDtiBYGXOk6 tvNQ== ARC-Message-Signature: i=1; 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; bh=ASapdV02o4chhuB+Yp1h91Qd2x8mU6zI7LZXitP9bOQ=; b=sxLapWaP+vb3318dC9CKy4bX6GroeOdqYeYrJhAfk6eKHj+xrEYCZn/ucrwwvG7Ypm 1Mjw3gWlzMb9yYN5G+arDMgRa+3iAx4RZzh2butXBRSlDiSmGtapxatOzRaf+moc8M9A 5S+nFFBv62P1sVpcumVQW0pakGlpdvAEoXO1TWzJRl2N3l4bNNZkyb1xN24kG/E4DYms SiAE/77b7LDIB4aGEZ6+lw+k2OdIxVjxdz5S8OGGds7WgxyEEBFDXO3cssI3bisWqpla rWJB+9RowEiUEDiQKY7x3PK5m5zSHFy8bPcBIQyhVlAuHtaOz/w6gzpSu2Qq1/usTDZ1 Omcg== ARC-Authentication-Results: i=1; mx.google.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de53si19766917ejc.358.2021.04.07.13.58.52; Wed, 07 Apr 2021 13:59:15 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352101AbhDGMS4 (ORCPT + 99 others); Wed, 7 Apr 2021 08:18:56 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5122 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235467AbhDGMSz (ORCPT ); Wed, 7 Apr 2021 08:18:55 -0400 Received: from dggeme709-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FFk0B0z1LzYSXp; Wed, 7 Apr 2021 20:16:42 +0800 (CST) Received: from dggeme760-chm.china.huawei.com (10.3.19.106) by dggeme709-chm.china.huawei.com (10.1.199.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Wed, 7 Apr 2021 20:18:42 +0800 Received: from dggeme760-chm.china.huawei.com ([10.6.80.70]) by dggeme760-chm.china.huawei.com ([10.6.80.70]) with mapi id 15.01.2106.013; Wed, 7 Apr 2021 20:18:42 +0800 From: zhengyongjun To: Coly Li CC: pmail_hulkci , "kent.overstreet@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-bcache@vger.kernel.org" Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0ggLW5leHQgdjJdIGJjYWNoZTogdXNlIERFRklORV9N?= =?utf-8?Q?UTEX()_for_mutex_lock?= Thread-Topic: [PATCH -next v2] bcache: use DEFINE_MUTEX() for mutex lock Thread-Index: AQHXK4/bL4Upvi4Xy0mPK9cWZ86QCaqoSX8AgACvlhA= Date: Wed, 7 Apr 2021 12:18:42 +0000 Message-ID: <537fd76b3f51421c95483fff3ec95aa6@huawei.com> References: <20210407093848.567720-1-zhengyongjun3@huawei.com> <7037a34e-988e-dbf5-9bed-e40f5e11c36b@suse.de> In-Reply-To: <7037a34e-988e-dbf5-9bed-e40f5e11c36b@suse.de> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.178.249] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SSB3aWxsIHNlbmQgeW91IHYzIHBhdGNoIHNvb24sIHRoYW5rIHlvdTopDQoNCi0tLS0t6YKu5Lu2 5Y6f5Lu2LS0tLS0NCuWPkeS7tuS6ujogQ29seSBMaSBbbWFpbHRvOmNvbHlsaUBzdXNlLmRlXSAN CuWPkemAgeaXtumXtDogMjAyMeW5tDTmnIg35pelIDE3OjUwDQrmlLbku7bkuro6IHpoZW5neW9u Z2p1biA8emhlbmd5b25nanVuM0BodWF3ZWkuY29tPg0K5oqE6YCBOiBwbWFpbF9odWxrY2kgPGh1 bGtjaUBodWF3ZWkuY29tPjsga2VudC5vdmVyc3RyZWV0QGdtYWlsLmNvbTsgbGludXgta2VybmV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