Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp913415imu; Fri, 4 Jan 2019 09:22:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN60zUW5BQHpLbl6DBpf6FnF1dUNA6DXvZI2bLGlXqahqfwzmacEClDnsmSSfRb3v8pc799v X-Received: by 2002:a17:902:47aa:: with SMTP id r39mr51170146pld.219.1546622566902; Fri, 04 Jan 2019 09:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546622566; cv=none; d=google.com; s=arc-20160816; b=ZH8aVvcXyJ1bLPqcQHG7+VqelFvMudm5bRilsypBHHzza0o4KXapsNoUoeMJzrTKkq g2ZEVmQ5peWggovZrKQgKXk3x0Jv7JAWAynUoWywJqUqqCb94F2T9yBQB47wP+14dVl6 bvYwAekGeY8xyWPltrX8ABFyFuZQLKbBUfLR1Au2gCJzQpF9tVbmqVbv+9hget470DcL t06nu0K4yvpglJDIpCN4RJkzidcPcSTT7b9FOZ+4D5+9sL0qw7OAlQYrCeUmSI0uby/q OQR1x2fxeY9VHOHOe880d4scSgkUMq+0yCazd9GrjcJ1THabwj+8jnn65wzLsIIREVHK xGew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=6GatY1qq8uBZxaDgnriLSD2x+9I6S2u1c27WomB6MA4=; b=kacThYX4a5yiW5xejeugydc55Q4K3nxs5jbvjZcNxHbK7IfIv+QctBgVG73hxtAmqM 5c9U7oUVMKBWPCP+jfYmSSzSqB+ik07YENWLGrPNT0Ui6tLR4LWhnX1/4M0ydxC4s47g p2vkFlEZq+NRyNJcb94xoX/yEZALi3cw48QDzvc6AYdDRO6hch3eN+6X5xTff2cso44d S6h8bDWm+Dz8qGp0LQ8nFyGC5zoRwd8Ph1owDH5itp/7QA2zKLLGPbcjrGPC3U9CqMB7 0E09JEsMNFC9931GTWPWkXVz7hphdIqRgL+N5Y48RFQkCBmDMIO2XcAD3ulRxEcsdwkz E7aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microgate-com.20150623.gappssmtp.com header.s=20150623 header.b="z8/jTKN0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p126si54139630pgp.529.2019.01.04.09.22.15; Fri, 04 Jan 2019 09:22:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microgate-com.20150623.gappssmtp.com header.s=20150623 header.b="z8/jTKN0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727362AbfADN5l (ORCPT + 99 others); Fri, 4 Jan 2019 08:57:41 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33672 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfADN5k (ORCPT ); Fri, 4 Jan 2019 08:57:40 -0500 Received: by mail-pg1-f193.google.com with SMTP id z11so17568478pgu.0 for ; Fri, 04 Jan 2019 05:57:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microgate-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6GatY1qq8uBZxaDgnriLSD2x+9I6S2u1c27WomB6MA4=; b=z8/jTKN08wleF34QuwSxj9MSML6pWwmatGFzhpqwVA2tVRB7Xqq2amh4jDJKa6Oz2s t7fojPD50Lzcdj9SoEUsQsXIl/FWFfDon9xF0fNnYXzVlvZioLzRB4p9eotH5mQ5AdL6 UDZoeICyKW8NpyIHb5NFafjNyVh5yChUsyx0TepZ5PWQ2spCma6dfAOC5lYJdRfZnovE QkweX3Ru0cWtI0yuDGEriff9scev+sRhrrK9AnyDSj2v97miXtzsic8DnBAKEerjUlng LzhlmDScz6S9BkFxACTdGO5aBgegOJ4FMjMO4BMOw65HpvyVmb+YnnVeQ2WC7QJ32Ga/ hzzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6GatY1qq8uBZxaDgnriLSD2x+9I6S2u1c27WomB6MA4=; b=RTmw2q7eue/fj3v4PEpBsxGRpjfUXndY3tnMROqOc0h5QyJhqBtSrgXeFqIZ8EXnXg gC8wdt5AOL+0jYSmMfSPUtp6Edf9Tv2FafAESczbYXwTMqTdqQCso1Mpb2dL56sJp7YV TigLCHW4YCDQPUbjhExHgaud9SY193zRXdnglCX3ivpHkNjeCDAAujFX9QVeijiv6qth aZ2JIL5hsVMoehaoSEuP+vaGp2ZRfgq0qs5ZTPFH1s0RgUSTbvmALSWWgr42qXdoiymN V5Zw3m5dkQB6+oxxIo/pJAJzcNlDzZbAl+gypo5UWoGy/cLortPaKhA5If/5kP0mN2aX H0WQ== X-Gm-Message-State: AJcUukeOh1Aay+TSHdBHigWsY3To0uBQGrjmd3uJTodJk/iLOAMt+GLH zTHIil42WaIYi1lE5PXqnIYYew== X-Received: by 2002:a63:9749:: with SMTP id d9mr20406220pgo.415.1546610259383; Fri, 04 Jan 2019 05:57:39 -0800 (PST) Received: from [192.168.1.77] (c.208.53.119.160.static.broadstripe.net. [208.53.119.160]) by smtp.gmail.com with ESMTPSA id x19sm101426273pfk.14.2019.01.04.05.57.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 05:57:38 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [PATCH] tty/n_hdlc: fix sleep in !TASK_RUNNING state warning From: Paul Fulghum In-Reply-To: <0a70193b-488a-7607-4ad5-05ec6018587e@i-love.sakura.ne.jp> Date: Fri, 4 Jan 2019 05:57:37 -0800 Cc: Jiri Slaby , Arnd Bergmann , Greg Kroah-Hartman , Alan Cox , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <348A9E34-49C4-4A08-BBA2-46D677F50534@microgate.com> References: <000000000000449587057e1e6f8b@google.com> <49b3b189-a51f-6a97-0e1f-bc3f2c305299@I-love.SAKURA.ne.jp> <98eec651-d1ab-48e5-309b-7e748981cfdd@i-love.sakura.ne.jp> <434841F9-C2DF-4D73-9AFB-3BFADF325086@microgate.com> <0a70193b-488a-7607-4ad5-05ec6018587e@i-love.sakura.ne.jp> To: Tetsuo Handa X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 4, 2019, at 2:23 AM, Tetsuo Handa = wrote: >=20 > But why not to clarify what are appropriate sanity checks? > ... > want a cleanup for scripts/checkpatch.pl . These are good goals. I avoid purely cosmetic patches. I do not object = to cosmetic patches from others that do not change behavior. The checks that concern you deal with changing tty line disciplines. = Dealing with line discipline changes has been an ongoing issue since = n_hdlc was derived from other line disciplines 20 years ago, with major = overhauls along the way. It is complex: driver layers shifting during = operation while dealing properly with opens, closes, hangups, and = sleeping operations. Patches have been added to the latest unreleased = kernel to address line discipline changes, it is still evolving. Why are the existing line discipline checks in n_hdlc where they are? = Becasue that=E2=80=99s how they evolved from where they started to = accomodate these changes. There are not many and their function is = known: has the line discipline changed at that point? I know that is not = satisfying but coming up with a definitive comment saying a check is = absolutely required in one place and not in another requires more = insight into the long history of a moving target than I have. Without = that insight I would not alter existing checks in code that is not = causing problems.=