lkml.org 
[lkml]   [2000]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: An assortment of module inc/dec races
Dawson Engler wrote:
>
> Hi,
>
> we have a g++ extension that checks that linux module code follows the
> three rules laid out by Tim & Rusty w.r.t. MOD_INC/MOD_DEC:
>
> 1. cannot call a sleep function before MOD_INC
> 2. cannot call a sleep function after MOD_DEC
> 3. if you return with an error after MOD_INC, must do a MOD_DEC
>

I believe this isn't useful anymore since all of the MOD_INC/DEC instances
were removed and module usage count is now handled by the vfs layer.

2.2 can probably still benefit from such an analysis...

Rui Sousa

-
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:58    [W:0.105 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site