Messages in this thread | | | Date | Wed, 28 Mar 2012 10:49:57 +0200 | From | Wolfram Sang <> | Subject | Re: [PATCH 12/13] Add a kerneldoc comment to spin_is_locked() that discourages its usage |
| |
> +/** > + * spin_is_locked() - Check if a spinlock is being held. > + * @lock: Lock to check. > + * > + * This function should normally not be used. Especially using it in > + * WARN and BUG_ONs is usually incorrect or redundant. > + * If you want to check if a lock is held in a function > + * use lockdep_assert_held(). A lot of other usages are racy. > + */
Maybe add a reference to the section you previously added to spinlock.txt?
Regards,
Wolfram
-- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [unhandled content-type:application/pgp-signature]
| |