Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp364743pxb; Thu, 23 Sep 2021 01:35:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS0I7XU+6vw5UPanCvvRewGWHrUXRepvRY+DunQiWFvnc2oFBOYkjsDHXIzexy9qMJn4oI X-Received: by 2002:a05:6402:1d04:: with SMTP id dg4mr4000593edb.183.1632386110511; Thu, 23 Sep 2021 01:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632386110; cv=none; d=google.com; s=arc-20160816; b=yzvdxp9qgTKERtwgAXON97sv5ZZrlz5W7JGO+QaRzY4pSz+S7gj5tYZsnwDPQxI6jY Gs42gPtCTWj5NLn8t+GZYDg6D64y69UC7MPToQPJdLol7sjyoPmo+/W0emS8B0gnb6UQ g0a9Sxchpn7AAEFst+kjmR7m4w6eM03Ky71AQRmaruWz46GxQAikB8Sh/ovwZmm6N8yS TCEEKRFhAk65Cx42qBDyKqlgwI5/vvDqx03Eg4oQ140OfJwR5BR0bTRleIlPVkfd8q5i 5mKWtwYYVLtsPEVW6gcV/kRwZBN7nol1+f3/us35w0qOwMCjgZXGX6EuhWhLr/HF2sbg pHCA== 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=x/PqogrOrZ0RzcBFb/P0rYVJ5E/+0Id6e4w0mYnXktg=; b=NbCeZlx9QjYlqgbq+TWwkfsgzqT7gDII81LL16knunKjXIMEsfCGSeLRX8nJmsYxOe f8j2PPgADhpOjah1k59R6o5AsLT83qgDb9kAiTh8BOB3FudNfKO9RSvmsKhAJZxnHase nSZoXkZKfgKgLSsZj9tcAjRupvBCPs51F9sZ/ODhUTRwrgzfu/jnCjrMAek82/3sTMB6 8AlY0eIHNH3LYw33xULGHyAHItQn1NWpRB7IkUioyRj+KfYT3RPRTWbdTEyI91v42+P1 wbrAsMEkyvcXtt/64xlOT40vliBiMg9t00p4OUaaUjY245PspEVRhCIoELPk7WQbO+yj k9GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FQFwno3e; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si5652209eji.418.2021.09.23.01.34.46; Thu, 23 Sep 2021 01:35:10 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FQFwno3e; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239933AbhIWIe0 (ORCPT + 99 others); Thu, 23 Sep 2021 04:34:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:58606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239676AbhIWIeX (ORCPT ); Thu, 23 Sep 2021 04:34:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CFBC86103C; Thu, 23 Sep 2021 08:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632385970; bh=vnXfYXOxyn9Ib5ZzXCraaYxvauIbNLuuADn51WHKooI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FQFwno3eTTineSXa32z/9oMB+zl71XT0u2+voZDGF9tIp9dvNzCY6teposdT7D7KP 0FEZqDSIQnyTo7XOjl92VA9MB2DmEIpHqjUZE9xRwCPJ5SChXOH3+W53FC/NBHfGGb zBU6vDVAc7rXN+t+GM5Ol4+S44se5HTby7V5MU4YuYG2j5qCRmjjAUdc8BbYg78bpY MUs0RL9CH9OgI1mWUxUworIF36TdcpBggNK7u7G52W0/oghyoSSvgMcxJy6hetmNnI xiUE6oPwTJTT1zynkYDxZk2JM+UgxIivvAxpeBFUAxSCzAGK+LGJ2+q5U3IX10Tvzh 6ayuQl3V9u0Yg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1mTK9z-0008Fd-RZ; Thu, 23 Sep 2021 10:32:51 +0200 Date: Thu, 23 Sep 2021 10:32:51 +0200 From: Johan Hovold To: Jiri Slaby Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 16/16] tty: drop tty_flip_buffer_push Message-ID: References: <20210914091134.17426-1-jslaby@suse.cz> <20210914091415.17918-1-jslaby@suse.cz> <20210914091415.17918-9-jslaby@suse.cz> <1fd9ed1a-edd2-a154-da1c-022a89b2c722@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1fd9ed1a-edd2-a154-da1c-022a89b2c722@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 08:57:17AM +0200, Jiri Slaby wrote: > On 16. 09. 21, 12:03, Johan Hovold wrote: > > On Tue, Sep 14, 2021 at 11:14:15AM +0200, Jiri Slaby wrote: > >> Since commit a9c3f68f3cd8d (tty: Fix low_latency BUG) in 2014, > >> tty_flip_buffer_push() is only a wrapper to tty_schedule_flip(). All > >> users were converted, so remove tty_flip_buffer_push() completely. > > The name tty_flip_buffer_push() is arguable more descriptive since the > > work may already be running and is also less tied to the implementation. > > > > The ratio of drivers using tty_flip_buffer_push() over > > tty_schedule_flip() is also something like 186 to 15 so that would > > amount to a lot less churn too. > > OK, I can do either way. I chose this path as tty_schedule_flip was a > wrapper to tty_flip_buffer_push. In any case, I wouldn't take the number > of changed drivers as a measure. But if it makes more sense for people > regarding the naming, I will "flip" the two flips. I'd prefer that. The name tty_flip_buffer_push() is more descriptive and we've been using it in virtually all tty drivers since 1997. No need to force people to relearn the pattern of tty insert + push. (Also note that the kernel doc for tty_schedule_flip() says "push characters to ldisc", while the name more reflects how the tty buffering was originally implemented.) > > Also, can you please start adding cover letters to your series to > > provide an overview of what it is you're trying to accomplish? > > I am not a fan of cover letters as they are not Cced to people who are > Cced in separate patches. So what would you like to see in the letter? > This series are just a random cleanup and IMO there is not much more to > be said except what is in their commit logs. Even if all it said was "random cleanups" it would still be worth having as I'd know that this is just Jiri moving code about and not necessarily something that needs deeper review. In this case the driver commit messages only said that "[w]e are going to remove [tty_flip_buffer_push()]" without any real explanation why that was chosen over the alternatives. I had to look up the series on lore to look for more details. But since there's no cover letter I end up having to skim the entire series only to come up mostly empty handed as the final patch just added "One less exported function" as some sort of motivation. Let's not make it harder for reviewers. If you're sending random cleanup patches then say so. And if they can be grouped into a few classes as seemed to be the case here then having those outlined is also helpful. Johan