lkml.org 
[lkml]   [2012]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH 5/6] implement per-cpu&per-domain state machine call_srcu()
From
Date
On Tue, 2012-03-06 at 17:57 +0800, Lai Jiangshan wrote:
> +/* Must called with sp->flip_check_mutex and sp->gp_lock held; */
> +static bool check_zero_idx(struct srcu_struct *sp, int idx,
> + struct srcu_head *head, int trycount)
> +{
> + unsigned long chck_seq;
> + bool checked_zero;
> +

lockdep_assert_held(&sp->flip_check_mutex);
lockdep_assert_held(&sp->gp_lock);

and you can do away with your comment (also you forgot a verb).


\
 
 \ /
  Last update: 2012-03-06 12:37    [from the cache]
©2003-2011 Jasper Spaans