Re: [PATCH] plist: add mutex to the blessed lock type for plists

From: Andi Kleen
Date: Wed Jun 29 2011 - 16:14:51 EST


Dima Zavin <dima@xxxxxxxxxxx> writes:

> Currently, plist debugging "enforces" that the plist is locked
> with either a raw_spinlock or a spinlock. The plist data structure
> is useful in other places, where spinlocks are unnecessary.
>
> Extend the plist initializers and debug checks to allow the plist
> to be protected by a mutex

Seems really ugly and clearly not a godo path.

It's a bit like adding a 11th argument to a function which already has
10.

Perhaps better move out the locking completely to wrappers and remove
the knowledge from the core plist code.

-Andi


--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/