login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
24
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() after ldisc halt
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Alan Cox
Subject:
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() after ldisc halt
Date: Wednesday, November 24, 2010 - 3:36 pm
> Yes, indeed, it's a bug. Please consider the following example:
quoted text
> > CPU1 CPU2 > ========================================================= > uart_handle_dcd_change() { tty_set_ldisc() { > ld = tty_ldisc_ref(...) ...
[We have a reference]
quoted text
> ... tty_ldisc_halt(...)
[Should block]
quoted text
> I think tty code is exactly the right place to fix this bug; this is > what my patch is for.
More special case magic on top of the current crap isn't the right fix here, tty_ldisc_halt needs to wait for the references to hit zero. Alan --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCHv5 05/17] tty: don't allow ldisc dcd_change() after ...
, Alexander Gordeev
, (Wed Nov 24, 9:15 am)
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() af ...
, Alan Cox
, (Wed Nov 24, 9:43 am)
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() af ...
, Alan Cox
, (Wed Nov 24, 3:36 pm)
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() af ...
, Alexander Gordeev
, (Wed Nov 24, 3:38 pm)
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() af ...
, Alexander Gordeev
, (Thu Nov 25, 6:30 am)
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() af ...
, Alan Cox
, (Thu Nov 25, 7:03 am)
Re: [PATCHv5 05/17] tty: don't allow ldisc dcd_change() af ...
, Alexander Gordeev
, (Wed Dec 15, 9:13 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
: