lkml.org 
[lkml]   [2000]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Oops in 2.2.15pre7
Date
Hello!

> Do you mean that this will be enough, and similar thing in tty_io.c?

Only not here! synchronize_irq() must follow fasync list modification.

You modify list and then wait for readers. See?
Correct reader will see either list before modification or after modification,
both of them are valid. kill_fasync() is correct reader,
I do not know about tty_io.c.

> Ain't this leaves small window for race, still?

Personally, I prefer cli()/sti(), because it excludes possibility
for reader to be wrong one. But in 2.2 it is really not crucial.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:1.762 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site