lkml.org 
[lkml]   [2011]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC] cdc-acm: Fix potential deadlock (lockdep warning)
From
On Wed, Nov 23, 2011 at 11:44 AM, Alan Cox <alan@linux.intel.com> wrote:
> Any data owned by the USB part needs to be handled by the USB driver.
> In the case of usb-serial it keeps its own krefs for that because the
> lifetime of the port/USB serial data is not the same as the lifetime of
> the tty itself.

Yes, exactly. But since tty_port already has a kref, why not use that?
It doesn't have any other use currently.

Hmm, a quick grep tells me tty_port_get() and tty_port_put() are
completely unused. What was the intention behind them?

Havard


\
 
 \ /
  Last update: 2011-11-23 22:05    [W:0.064 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site