Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp6029664pxv; Wed, 7 Jul 2021 18:03:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuXsOSIrjXTBP23Hrij2dBmbzKPLx9KUQ2B8AkRksLTIbteB4wnEPMUoFm9g7XJi2zKHdq X-Received: by 2002:a6b:5d1e:: with SMTP id r30mr5400506iob.69.1625706192656; Wed, 07 Jul 2021 18:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625706192; cv=none; d=google.com; s=arc-20160816; b=UcakTMK+Dfv47bP1jHT4giYCmmtZ/rJelh0BE8RwVHh7CLVAiprMwDsJ/Yfpo6t8kc hYA0pmbE0sT0wh4iDKiExk3c9sR/qpogz8/6KqFyuWMY+tTakRF1R9j2iTuic91PFupx Z9JthTERVXWQEuEN19MLJfiYrAEoyCPoUHOjZhITdWP1F0eaL9JddLgLZ3j3Hac0dK+K Jear0PnIEIKxojYKbtNx0oGCjf2sM5R2HA3xy3oysYrzsoGWmcH1KCtk2aYMtgTsW93a DAF6RYcowYyy3eDd4rwN7bIzxjZRvl6AfuMXLyEbScr8Ncq08yaPsTGEE+FQScgXiu3y Zxjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=Q/kLtYirn+MRDykoxf21dwUEA/shaj6HXBoZqcfFsHM=; b=d28v/HJORKUrLee3Giqo3kRTL1ubhFsbmnHa0gFCZPfF/aRSj7UpPT3tY6wTHbY5qj E7A6FKcjSvD7hZTVzY7KICaB5UIPgHaL1dRVZCUEIXNgczwaYO7PNWAevbpQn1ifzFzp eUIwOCfPGGz8/M6n1/CInQZ1uYaHQfaTDVoX2KijX7ns0nDic16SiZ0C4o78konIxpTK kj/FBJXpDMIiD0cJXbJTn5HO1c6M8SKYFbuswtm9bRC5Yvp7YEwpW93EEMnBn4DkY5ID J6hZ3J3OTNEYWZw0GL2wNK1cZHmfli2WYhYE4CAv+Rms/GGhnO7WyyQ3Ssapcui06wi0 f5Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 a8si770768ilt.107.2021.07.07.18.02.40; Wed, 07 Jul 2021 18:03:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbhGHBDd (ORCPT + 99 others); Wed, 7 Jul 2021 21:03:33 -0400 Received: from mail.zju.edu.cn ([61.164.42.155]:43612 "EHLO zju.edu.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230029AbhGHBDc (ORCPT ); Wed, 7 Jul 2021 21:03:32 -0400 Received: by ajax-webmail-mail-app2 (Coremail) ; Thu, 8 Jul 2021 09:00:41 +0800 (GMT+08:00) X-Originating-IP: [10.162.82.120] Date: Thu, 8 Jul 2021 09:00:41 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: LinMa To: "Tetsuo Handa" Cc: "Luiz Augusto von Dentz" , "Marcel Holtmann" , "Johan Hedberg" , "linux-bluetooth@vger.kernel.org" , "David S. Miller" , "Jakub Kicinski" , "open list:NETWORKING [GENERAL]" Subject: Re: Re: [PATCH v2] Bluetooth: call lock_sock() outside of spinlock section X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2021 www.mailtech.cn zju.edu.cn In-Reply-To: <79694c01-b69e-a039-6860-d7e612fbc008@i-love.sakura.ne.jp> References: <20210627131134.5434-1-penguin-kernel@I-love.SAKURA.ne.jp> <9deece33-5d7f-9dcb-9aaa-94c60d28fc9a@i-love.sakura.ne.jp> <79694c01-b69e-a039-6860-d7e612fbc008@i-love.sakura.ne.jp> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <5c823fa2.353ff.17a83a190e2.Coremail.linma@zju.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: by_KCgA3WBQ5TuZg6qBJAQ--.23666W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwIAElNG3DbcsQABsA X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW3Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org PiAKPiBkaWZmIC0tZ2l0IGEvbmV0L2JsdWV0b290aC9oY2lfc29jay5jIGIvbmV0L2JsdWV0b290 aC9oY2lfc29jay5jCj4gaW5kZXggYjA0YTVhMDJlY2YzLi4wNTI1ODgzZjQ2MzkgMTAwNjQ0Cj4g LS0tIGEvbmV0L2JsdWV0b290aC9oY2lfc29jay5jCj4gKysrIGIvbmV0L2JsdWV0b290aC9oY2lf c29jay5jCj4gQEAgLTc1OSwxOSArNzU5LDE0IEBAIHZvaWQgaGNpX3NvY2tfZGV2X2V2ZW50KHN0 cnVjdCBoY2lfZGV2ICpoZGV2LCBpbnQgZXZlbnQpCj4gIAlpZiAoZXZlbnQgPT0gSENJX0RFVl9V TlJFRykgewo+ICAJCXN0cnVjdCBzb2NrICpzazsKPiAgCj4gLQkJLyogRGV0YWNoIHNvY2tldHMg ZnJvbSBkZXZpY2UgKi8KPiArCQkvKiBDaGFuZ2Ugc29ja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