Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934463AbbGVPCy (ORCPT ); Wed, 22 Jul 2015 11:02:54 -0400 Received: from cantor2.suse.de ([195.135.220.15]:54003 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932206AbbGVPCw (ORCPT ); Wed, 22 Jul 2015 11:02:52 -0400 Message-ID: <1437577303.5445.7.camel@suse.com> Subject: Re: [PATCH] Fix data loss in cdc-acm From: Oliver Neukum To: Peter Hurley Cc: Johan Hovold , One Thousand Gnomes , Toby Gray , Sven Brauch , Linux Kernel Mailing List , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org Date: Wed, 22 Jul 2015 17:01:43 +0200 In-Reply-To: <55AFA900.6040605@hurleysoftware.com> References: <55AC1883.4050605@svenbrauch.de> <20150720172546.GF20628@localhost> <55AD38E5.1090807@svenbrauch.de> <20150721091838.GG20628@localhost> <55AE7714.80306@hurleysoftware.com> <1437554428.5445.0.camel@suse.com> <55AFA900.6040605@hurleysoftware.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1011 Lines: 29 On Wed, 2015-07-22 at 10:30 -0400, Peter Hurley wrote: > 3. Pre-allocate space _before_ the data arrives (with > tty_buffer_request_room()); > this is applicable to subsystems which know how much data can be > in-flight > at any one time. This guarantees that when rx data arrives buffer > space is > available (since it has already been allocated). > > Drivers that use method 2 typically attempt to recopy the buffered > data > when either new data arrives or @ unthrottle. I've seen others use > deferred > work as well. > > AFAIK no driver/subsystem is using method 3 for guaranteed delivery > of in-flight data, but it seems ideally suited to usb serial. Indeed. But flow control is still done by throttle/unthrottle, isn't it? Regards Oliver -- 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/