Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338807
b: refs/heads/master
c: f2ebfbc
h: refs/heads/master
i:
  338805: 25bfbb0
  338803: 163be9e
  338799: d0cde28
v: v3
  • Loading branch information
Lai Jiangshan authored and Paul E. McKenney committed Oct 23, 2012
1 parent 0ef8813 commit e873009
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4e87b2d7e887df3fe251dd7f702591a3acf369ca
refs/heads/master: f2ebfbc991044fd5b89d4529741d7500feb37fbd
2 changes: 2 additions & 0 deletions trunk/include/linux/srcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ int init_srcu_struct(struct srcu_struct *sp);

#endif /* #else #ifdef CONFIG_DEBUG_LOCK_ALLOC */

void process_srcu(struct work_struct *work);

/**
* call_srcu() - Queue a callback for invocation after an SRCU grace period
* @sp: srcu_struct in queue the callback
Expand Down
6 changes: 2 additions & 4 deletions trunk/kernel/srcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ static inline void rcu_batch_move(struct rcu_batch *to, struct rcu_batch *from)
}
}

/* single-thread state-machine */
static void process_srcu(struct work_struct *work);

static int init_srcu_struct_fields(struct srcu_struct *sp)
{
sp->completed = 0;
Expand Down Expand Up @@ -639,7 +636,7 @@ static void srcu_reschedule(struct srcu_struct *sp)
/*
* This is the work-queue function that handles SRCU grace periods.
*/
static void process_srcu(struct work_struct *work)
void process_srcu(struct work_struct *work)
{
struct srcu_struct *sp;

Expand All @@ -650,3 +647,4 @@ static void process_srcu(struct work_struct *work)
srcu_invoke_callbacks(sp);
srcu_reschedule(sp);
}
EXPORT_SYMBOL_GPL(process_srcu);

0 comments on commit e873009

Please sign in to comment.