Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349817
b: refs/heads/master
c: ab4d298
h: refs/heads/master
i:
  349815: cc8ea60
v: v3
  • Loading branch information
Lai Jiangshan authored and Paul E. McKenney committed Feb 7, 2013
1 parent fbaebc4 commit 491a238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 6e6f1b307e23201fb3e7aaf16322e80355d2a3d5
refs/heads/master: ab4d2986e44c589aa1b647d7da5e21c2707babea
8 changes: 2 additions & 6 deletions trunk/kernel/srcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,8 @@ static int srcu_readers_active(struct srcu_struct *sp)
*/
void cleanup_srcu_struct(struct srcu_struct *sp)
{
int sum;

sum = srcu_readers_active(sp);
WARN_ON(sum); /* Leakage unless caller handles error. */
if (sum != 0)
return;
if (WARN_ON(srcu_readers_active(sp)))
return; /* Leakage unless caller handles error. */
free_percpu(sp->per_cpu_ref);
sp->per_cpu_ref = NULL;
}
Expand Down

0 comments on commit 491a238

Please sign in to comment.