Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11174285pxu; Thu, 31 Dec 2020 02:04:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh4L+dWABh8GqWFFgzImKwzxdxY0ZgJH09WnuD0lL8XwUowAJUf8BdSYQ/A95NEmY8DBIM X-Received: by 2002:a17:906:4d17:: with SMTP id r23mr55194577eju.87.1609409040495; Thu, 31 Dec 2020 02:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609409040; cv=none; d=google.com; s=arc-20160816; b=X2w3Sz5Nq+6syGSmYJ/x3z6nmFmXFI4e26nCCGTC/KyVjKL3T0xN6tDAtUwfF5JTY0 iOwyOniBMDm76w0dEhdaLt5RW3Wt+EMQPC5SNrnX+z4h48xGK4fbA4wbrRAuFigBDwK+ 9fryG+o8ZKSO4Zy23bPolfyxxGNuaS2+jW5lsexOLsXhvc04nCDlOF/9Orm1jAbMLYiJ ezvLBEbiJ+JkoqPMKbwrLINeWX+RpmsaSJNK+Z/ctfdRPqBJ+PgneMeDg6ybyDh6hQar CbP3bUNGzlFLBz0niQuWvJXFb54RHK2AusqXf5Fp+pWAxfFZ7FKPUnEs6GKDKqsid1ou GATQ== 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=Rs7Qkyh687HPIr+RDD5TfvYfKwgkdxCAvLycnGEAD2E=; b=ciqFG8l49vt400uyOOxoznXhdG82cKgUQN+BSELvvyXsOIn7KlaM5E95OOmZVUisNb QHsfovPNEZhWQ501zt+S2VPrmk/tfFsCE8YvSD4DvBooN+lfTbd2pBNIA326EPfPibsh saKYoNzDw8pWsqyUHIEtly1ZCDZdCxDB2lU/8g6gnwWT2yap0XxLCgyaxGGX0cqd9JK/ UfyGPsEGgFiHhdVpxAghJRsB5qPZzGkuQvCbW8hlCxWnk+npdGYds61jUlvLG0ky5VM3 ojJVXSmPkkfudMgm8c6ODmcLJbpo7S7VyrjVmT58pUUscwu+I/Bq4aNfmM/j45CHy6rc OM1A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si23249212ejq.292.2020.12.31.02.03.37; Thu, 31 Dec 2020 02:04:00 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbgLaKCL (ORCPT + 99 others); Thu, 31 Dec 2020 05:02:11 -0500 Received: from smtp.h3c.com ([60.191.123.50]:12010 "EHLO h3cspam02-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbgLaKCK (ORCPT ); Thu, 31 Dec 2020 05:02:10 -0500 Received: from DAG2EX07-IDC.srv.huawei-3com.com ([10.8.0.70]) by h3cspam02-ex.h3c.com with ESMTP id 0BVA0ASa034262; Thu, 31 Dec 2020 18:00:10 +0800 (GMT-8) (envelope-from gao.yanB@h3c.com) Received: from DAG2EX08-IDC.srv.huawei-3com.com (10.8.0.71) by DAG2EX07-IDC.srv.huawei-3com.com (10.8.0.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 31 Dec 2020 18:00:13 +0800 Received: from DAG2EX08-IDC.srv.huawei-3com.com ([fe80::81d1:43f5:5563:4c58]) by DAG2EX08-IDC.srv.huawei-3com.com ([fe80::81d1:43f5:5563:4c58%10]) with mapi id 15.01.2106.002; Thu, 31 Dec 2020 18:00:13 +0800 From: Gaoyan To: "paulus@samba.org" , "davem@davemloft.net" , "kuba@kernel.org" CC: "linux-ppp@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0hdIG5ldDogcmVtb3ZlIGRpc2NfZGF0YV9sb2NrIGlu?= =?utf-8?Q?_ppp_line_discipline?= Thread-Topic: [PATCH] net: remove disc_data_lock in ppp line discipline Thread-Index: AQHW3OrDdljHfTEdukqMzUeudaTjxKoQ+gbQ Date: Thu, 31 Dec 2020 10:00:12 +0000 Message-ID: References: <20201228071550.15745-1-gao.yanB@h3c.com> In-Reply-To: <20201228071550.15745-1-gao.yanB@h3c.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.161.27] x-sender-location: DAG2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 0BVA0ASa034262 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGVhciBhbGzvvJoNCg0KQ291bGQgSSBnZXQgeW91ciBjb21tZW50cyBmb3IgdGhlIHVwZGF0ZXM/ ICBJZiBJIGNhbiBnZXQgYSByZXBseSwgaXQgd2lsbCBoZWxwIG1lIGEgbG90IC4gVGhhbmtzDQoN Cmh0dHBzOi8vbGttbC5vcmcvbGttbC8yMDIwLzEyLzI4LzE5DQoNCg0KDQoqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqDQoNCg0KLS0tLU9yaWdpbmFsIG1haWwgLS0tLS0NCuWPkeS7tuS6 ujogZ2FveWFuIChSRCkgDQrlj5HpgIHml7bpl7Q6IDIwMjDlubQxMuaciDI45pelIDE1OjE2DQrm lLbku7bkuro6IHBhdWx1c0BzYW1iYS5vcmc7IGRhd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