Re: [PATCH RFC 00/11] lock monitor: Separate features related tolock

From: Peter Zijlstra
Date: Tue Mar 23 2010 - 11:33:23 EST


On Sat, 2010-03-20 at 17:23 +0900, Hitoshi Mitake wrote:
> In lockdep, held_locks of task_struct are accessed this arithmetical way
> prev = curr->held_locks + i;
> Of course this is valid way, but I feel it is more simple and natural way
> prev = curr->held_locks[i];
>

The latter is a type mis-match, an equivalent expression would be:
&curr->held_locks[i];
--
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/