lkml.org 
[lkml]   [2005]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Notifier chains are unsafe
Date
On Tue, 1 Nov 2005 16:20:43 -0500 (EST), 
Alan Stern <stern@rowland.harvard.edu> wrote:
>You mean the RCU-style update? It will hang when a callout routine tries
>to deregister itself as it is running, although we could add a new
>unregister_self API to handle that. Just check for num_callers equal to 1
>instead of 0.

A callout on an atomic notifer chain has no business calling the
register/unregister functions. It makes no sense for an atomic context
to call a routine that can sleep or block.

-
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/

\
 
 \ /
  Last update: 2005-11-02 10:53    [W:0.220 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site