Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11838548pxu; Fri, 1 Jan 2021 00:21:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTHJyqDS7p3CzQpEuEuEohzaJRpI5njWqYhQXTpb2p5FrEBj3LU6rVuClr6s+Q3v7Pkm1H X-Received: by 2002:a17:907:414c:: with SMTP id od20mr55833073ejb.75.1609489259902; Fri, 01 Jan 2021 00:20:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609489259; cv=none; d=google.com; s=arc-20160816; b=puZ/sTG2byGRqNQ0n3FEz0rJ17gAQQ95fVb13D2l5+dp56G7PXF5HHjJzAAeiUc+Nx UVMudsqHx0CIM29nnJjPcuShC1D9PlZd7KQqfynazlCxXcSNt+8uS2cWkGodImVjTcPH mxt+3rlmBmZEA91swjq5cB1726dRqKW+63Tg6alncxE3Je5w65Sa/HosFI+megt2BXiY 47jOZHYKoDK0JVvHQ9l+pA3Ba15RzQdQU1h/+PX71rST3wkT6/cf2IaEIUTcz/7iHCCW 50HyahJ9jfT8PmzExWK1dpIZdg/FpA2YiM3btVSKepGCFbcu2jnbi6mCzmDprmb06o2B /etg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nb/1RCOFCmjnC+qxyyfcwep2OJaBhmSAGNrq3LV445E=; b=bAoSrzvPu0aDCS6MC6DSBb1kmId1Ca+ce/ph0ZgSaD0NjCRBbi+arevfYAguo414kH znMU7Pg9cQk+XW45fWY5rM3XGuRIPD0/bzK5UoBPpaZB1U5ofopdmzz+6g4pn/gYmwUF 0AXWuhGBzWaKbawH1623/Pd2H+y3FAuhL18LVttZ0mhncgkVofG6dGwTLccx3knA4CW/ EMYevMCCDYUdv2eNb5e2cvcqSr1tVi/E/DsSCAnz0jVhAE5ivKx/8V8LmFKaC2n4oMru /Kdha7JFFfjAwFJ9DoIy8+cXRJI3VoF8rbm2Rao5j8X5uwUBffH275NHz4bGiVPqO3Zl fOlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k9yWVT3B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si26667586edv.261.2021.01.01.00.20.38; Fri, 01 Jan 2021 00:20:59 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k9yWVT3B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726525AbhAAITi (ORCPT + 99 others); Fri, 1 Jan 2021 03:19:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:49748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbhAAITi (ORCPT ); Fri, 1 Jan 2021 03:19:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5EC8C221E9; Fri, 1 Jan 2021 08:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609489132; bh=Eywt6vGrmq9DTg4SpIk2R2wqQ1iRxAO/RH7CPApb4iM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k9yWVT3Bp7Dylx4XnBQcj2EQ/+i+YTXXK8IdG9Nf+BUwgPrwV4tqSFETOMydVm+vq WWzGR8z37HcNMhUilxW/9qnLyz2l0FRkacbyhGycEJd4sr37A0+qIw89a0y8N4HA2F l/M7Q7Ag2zboIyDdXP3n161wxUFfKgrRW1HP0X1g= Date: Fri, 1 Jan 2021 09:18:48 +0100 From: Greg KH To: Gao Yan Cc: jirislaby@kernel.org, paulus@samba.org, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2]net:ppp: remove disc_data_lock in ppp line discipline Message-ID: References: <20210101033718.45198-1-gao.yanB@h3c.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210101033718.45198-1-gao.yanB@h3c.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 01, 2021 at 11:37:18AM +0800, Gao Yan wrote: > In tty layer, it provides tty->ldisc_sem to protect all tty_ldisc_ops > including ppp_sync_ldisc. So I think tty->ldisc_sem can also > protect tty->disc_data, and the disc_data_lock is not necessary. > > Signed-off-by: Gao Yan > --- > drivers/net/ppp/ppp_async.c | 11 ++--------- > drivers/net/ppp/ppp_synctty.c | 12 ++---------- > 2 files changed, 4 insertions(+), 19 deletions(-) What changed from v1? And how did you test this? Why remove this lock, is it causing problems somewhere for it to be here? thanks, greg k-h