Re: deadlock avoidance?

Pavel Machek (pavel@ucw.cz)
Wed, 8 Dec 1999 11:20:08 +0100


Hi!

> This is unfortunately too complicated. There's an API which other kernel
> modules use which would need to be updated as well and passing that
> information to the completion routine as well.

> It would needlessly clutter the API.

If you call it not int need_lock but int flags, it may not be that bad...
Then you just test for F_ALREADYLOCKED...

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

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