[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1329313968.2293.109.camel@twins>
Date: Wed, 15 Feb 2012 14:52:48 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: mingo@...hat.com, hpa@...or.com, anton.vorontsov@...aro.org,
arve@...roid.com, linux-kernel@...r.kernel.org, san@...gle.com,
ebiederm@...ssion.com, gregkh@...uxfoundation.org,
paulmck@...ux.vnet.ibm.com, ccross@...roid.com,
kosaki.motohiro@...il.com, oleg@...hat.com, tglx@...utronix.de,
mingo@...e.hu
Cc: linux-tip-commits@...r.kernel.org
Subject: Re: [tip:sched/core] sched: Turn lock_task_sighand() into a static
inline
On Sat, 2012-02-11 at 15:10 -0800, tip-bot for Anton Vorontsov wrote:
> +static inline struct sighand_struct *lock_task_sighand(struct task_struct *tsk,
> + unsigned long *flags)
> +{
> + struct sighand_struct *ret;
> +
> + ret = __lock_task_sighand(tsk, flags);
> + (void)__cond_lock(&tsk->sighand->siglock, ret);
> + return ret;
> +}
FWIW, I still really utterly detest __cond_lock(). Ideally someone would
teach sparse the conditional based on return thing and we could do the
function level annotation.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists