Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2115733imu; Thu, 10 Jan 2019 08:31:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN4wugJz42awcMZZ+1oD+0XEPEVCHho7FlyznHKwQKEuBv92hsiFW+VHHv+NpgOQQKESV5lQ X-Received: by 2002:a62:d701:: with SMTP id b1mr10708253pfh.34.1547137910593; Thu, 10 Jan 2019 08:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547137910; cv=none; d=google.com; s=arc-20160816; b=GaOgsx8/QC2LRCCNTKhKVLx440bF0+ws89m3z2PTU4QiKVAr8gM58UrZboIKtVYRqo FNJKviHmfOJXfwaAGieDkjs+ZmKJpAyjd+NSB7dv64SMbj6M3NLUOmEliyRmYMlNKQS5 SFNyXxJ3fVUU14DzraCTlTbbFXZigCVJL0RW7XGO/NDw4BLIV+dtNC1EyBQPHFZ6v4bW K4+0gsHqnCr6UeP8HmEwAbd6Ioq8IOwzMSbQHjgn4OOAOxiBXKRiHquiEAEBlEembkFV 3w8C2AyGoAiplzC47D8bd0ebNA241ZIUlWmDi8yS89roAE0sn9bEV4Ts3ijw4l5cSWUz gpwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QnIL2wNGoU0wNfbINXG2nwKw/KpQEorjFSt0/YHxvxc=; b=Wuhvucc2UFuD2w0CplU6xKPs7iP1lQWDLVrMW7os9F4O3Nst2eIu56B9PgG3R7LHJy y71vnVTSxaX4NnOk+t7tGhgbeqdCgaEt7X01dukMskHtf934Xe0ayAVVcVm3gci8gPSl 3kGB9SR+5SpW8yHunO6iIvEfduwUis4E2qKa+lAYtZ9+mRWeKqIbsZe3tF6aVFhEjjuJ AcFsNAIF9aHIkOacZe8r7uZVg/ZG/7dFuNGIkUWcFs0Fok4ilnWtZy6JjG077p1a4C3K 0aRypSy2g/unDu9hwE89SuXQTujNYq7RDdApn1r3LfyVJklPZIgdX56GXeJAHJUIzsaD aikw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BLiN80Ru; 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 u3si23515046pgj.300.2019.01.10.08.31.35; Thu, 10 Jan 2019 08:31:50 -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=@kernel.org header.s=default header.b=BLiN80Ru; 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 S1727944AbfAJQaf (ORCPT + 99 others); Thu, 10 Jan 2019 11:30:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:38158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbfAJQae (ORCPT ); Thu, 10 Jan 2019 11:30:34 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41DB2206B7; Thu, 10 Jan 2019 16:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547137833; bh=Q4wBSFHlZ5JsYSF4PEc/HY6Lhy+R3VtJ+WOudiP0+yU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BLiN80RuZ/I6YnbT47rFgagiwYVljl7/DGZ5H1jcYU7R12HMzxvO6h6WKKyq3/nvs HIpYsLyrfaCioI9ODvSuiM6Jc9KHAj7hc4MVBZ0y82D+9BayT9EDhtWVMcYWvVGS7E HH6wZkIt2YioYBecaxYpfLygWtGFihaQG0tKCcSY= Date: Thu, 10 Jan 2019 17:30:30 +0100 From: Greg Kroah-Hartman To: Oleksij Rempel Cc: Linus Torvalds , Jiri Slaby , Pengutronix Kernel Team , lkml Subject: Re: [PATCH v1 3/3] drivers/tty: increase priority for tty_buffer_worker Message-ID: <20190110163030.GB19693@kroah.com> References: <20190110101232.9398-1-o.rempel@pengutronix.de> <20190110101232.9398-4-o.rempel@pengutronix.de> <20190110151953.qpat4t7lat6plfk6@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190110151953.qpat4t7lat6plfk6@pengutronix.de> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 10, 2019 at 04:19:53PM +0100, Oleksij Rempel wrote: > > My gut feel is that if somebody still cares deeply about serial line > > latency, they should look at trying to see if they can do some of the > > work directly without the bounce to the workqueue. We use workqueues > > for a reason, but it's possible that some of it could be avoided at > > least in special cases... And yours sounds like a special case. > > It is for industrial low latency RS-422 based application. The loopback > test is just easy way to test/reproduce it without additional hardware. > > What is good, mainlineable way to implement it? What is the real problem your systems are having? Are they serial-port limited? Is latency a big issue? Trying to tune for a fake workload isn't the best way to solve anything :) thanks, greg k-h