Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp936088pxf; Wed, 7 Apr 2021 15:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8ZiHzxSJdKMuQb4mkWkvQwwp57kkWkzhda125MgVjkT8jnZfmubeEPodsrcLgwRoc5Yt6 X-Received: by 2002:a17:906:dfcc:: with SMTP id jt12mr6429464ejc.31.1617834615170; Wed, 07 Apr 2021 15:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617834615; cv=none; d=google.com; s=arc-20160816; b=anO2bkfsItd1O44chLk+Z1QLCmobJqwlkQbAhwy/+pW97Md+Nhj+utLG/TygPPkhcU +0hynj+G+BW/U5Opvhgc4i6X3koD1ZGlXS8EObOeeaqOwJNnu/fWQm94NHsFzIpunkTk AdrROMKCydO1f1/v37Qmf4F8uC1l7Nn5U6lTtUJHJPy9obWmKVBNzLdqKW3LpwLiyqC3 wGIAhH5mYmjlwrRydCoOCAZbnBoPsS4GyvsGwql72ffkUq6jvZXFrV/HcJ0K4Dg0OHti pPMGjvuvzleS5eWngPI2MMq6mKF4OQZkp2C9kur6Y7zx5LGj3Z+HzYLB+SFapwVfUMjz qa4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=xer8x5nPyZIba5+fg44t4MC0FPYV+FQxECjZeVTqzwk=; b=RGlMzTojDWlVKZPmgD3uj4vQB9gv2WBZHatIKW8iVMY2O8CDggdIymAg1XzSY2ltHw EpOqmwXTJ+eMkvbPs1yON13/ZSoonBTkrfw3rZSHpjz5Oc27Q7Hc9+Sxu8lwkmntvJtC F5cQMfAzUxckQILRyk2WbaoBkUD+iOS5FZW+pKzzguKNbea5hGTyJMAgwgiiCQmzzldw eZrSedQYYgCrpkRXVyrtFmVH0JWyzwhw0sZxGZK0pLm1a8DMPX8MbW3w5zS9u8Th3UW5 qnsUGZLySW06+pZO082A3Do+lxv+soq5AP1ASZyapiw7oq+nLlBB2U/CAd7DWaf/T2Rq 9KNw== 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 l6si14760463edn.441.2021.04.07.15.29.52; Wed, 07 Apr 2021 15:30: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 S243717AbhDGG6I (ORCPT + 99 others); Wed, 7 Apr 2021 02:58:08 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15622 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbhDGG6H (ORCPT ); Wed, 7 Apr 2021 02:58:07 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FFZst2WNXz17Qtn; Wed, 7 Apr 2021 14:55:46 +0800 (CST) Received: from [127.0.0.1] (10.40.192.162) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 14:57:54 +0800 Subject: Re: [PATCH v2 04/10] tty: tty_jobctrl: Fix coding style issues of block comments To: Jiri Slaby , References: <1617708288-14847-1-git-send-email-tanxiaofei@huawei.com> <1617708288-14847-5-git-send-email-tanxiaofei@huawei.com> <87ba5be2-e8ee-b1ed-175d-1ee7d5a45498@kernel.org> CC: , From: Xiaofei Tan Message-ID: <8aca1b4a-df03-cb6a-3aa8-a071d2f1c0d3@huawei.com> Date: Wed, 7 Apr 2021 14:57:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <87ba5be2-e8ee-b1ed-175d-1ee7d5a45498@kernel.org> Content-Type: text/plain; charset="iso-8859-2"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.192.162] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiri, On 2021/4/7 13:26, Jiri Slaby wrote: > On 06. 04. 21, 13:24, Xiaofei Tan wrote: >> Fix coding style issues of block comments, reported by checkpatch.pl. >> Besides, do some expression optimization for the sentenses. >> >> Signed-off-by: Xiaofei Tan >> --- >> drivers/tty/tty_jobctrl.c | 16 ++++++++++------ >> 1 file changed, 10 insertions(+), 6 deletions(-) >> >> diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty/tty_jobctrl.c >> index 86070f7..7003b6b 100644 >> --- a/drivers/tty/tty_jobctrl.c >> +++ b/drivers/tty/tty_jobctrl.c >> @@ -204,8 +204,10 @@ int tty_signal_session_leader(struct tty_struct >> *tty, int exit_session) >> spin_lock_irq(&p->sighand->siglock); >> if (p->signal->tty == tty) { >> p->signal->tty = NULL; >> - /* We defer the dereferences outside fo >> - the tasklist lock */ >> + /* >> + * We defer the dereferences outside of >> + * the tasklist lock period > > :). No, I meant "period" as this punctuation mark: . > Oh, my misunderstanding. I will send v3 later. thanks. :) >> + */ >> refs++; >> } >> if (!p->signal->leader) { >> @@ -328,9 +330,11 @@ void disassociate_ctty(int on_exit) >> */ >> void no_tty(void) >> { >> - /* FIXME: Review locking here. The tty_lock never covered any race >> - between a new association and proc_clear_tty but possible we need >> - to protect against this anyway */ >> + /* >> + * FIXME: Review locking here. The tty_lock never covered any race >> + * between a new association and proc_clear_tty but possibly we need >> + * to protect against this period anyway > > The same here. > Sure >> + */ >> struct task_struct *tsk = current; >> disassociate_ctty(0); >> @@ -536,7 +540,7 @@ static int tiocgsid(struct tty_struct *tty, struct >> tty_struct *real_tty, pid_t _ >> /* >> * (tty == real_tty) is a cheap way of >> * testing if the tty is NOT a master pty. >> - */ >> + */ >> if (tty == real_tty && current->signal->tty != real_tty) >> return -ENOTTY; >> > >