Linux-kernel mailing list archive 2000-32,: Re: An assortment of module inc/dec races

# Re: An assortment of module inc/dec races

Rui Sousa (rsousa@grad.physics.sunysb.edu)
Mon, 07 Aug 2000 04:19:06 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Keith Owens: "Announce: modutils 2.3.14 is available"
- Previous message: Alexander Viro: "Re: An assortment of module inc/dec races"
- Maybe in reply to: Dawson Engler: "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/

- Next message: Keith Owens: "Announce: modutils 2.3.14 is available"
- Previous message: Alexander Viro: "Re: An assortment of module inc/dec races"
- Maybe in reply to: Dawson Engler: "An assortment of module inc/dec races"