Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932446AbWHCNFn (ORCPT ); Thu, 3 Aug 2006 09:05:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932450AbWHCNFn (ORCPT ); Thu, 3 Aug 2006 09:05:43 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:17376 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S932446AbWHCNFn (ORCPT ); Thu, 3 Aug 2006 09:05:43 -0400 Subject: Re: [PATCH] tty: add ioctl for setting the throttle threshold (handshake) From: Alan Cox To: Dirk Eibach Cc: rmk+serial@arm.linux.org.uk, linux-kernel@vger.kernel.org In-Reply-To: <44D1F1C5.6040809@gdsys.de> References: <44D1F1C5.6040809@gdsys.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 03 Aug 2006 14:25:00 +0100 Message-Id: <1154611500.23655.75.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 987 Lines: 28 Ar Iau, 2006-08-03 am 14:53 +0200, ysgrifennodd Dirk Eibach: > To be more flexible ioctls were added to control the throttling thresholds. > > This patch applies to kernel 2.6.16. > > Signed-off-by: Dirk Eibach NAK Two reasons #1 Users should not be expected to set these kind of parameters, the kernel should just get it right #2 With the new buffering if you respond too slowly then thats allowed for (with a limit enforced in the patch I posted) Those two alone aren't quite enough to deal with some corner cases where you throttle too late and queue an oversized buffer. The changes in 2.6.18-rc by Paul however ensure that such a buffer is fed into the ldisc in appropriate sized chunks to avoid data loss. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/