closure.c (78ac2107176baa0daf65b0fb8e561d2ed14c83ca) closure.c (1fae7cf05293d3a2c9e59c1bc59372322386467c)
1/*
2 * Asynchronous refcounty things
3 *
4 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com>
5 * Copyright 2012 Google, Inc.
6 */
7
8#include <linux/debugfs.h>

--- 148 unchanged lines hidden (view full) ---

157}
158EXPORT_SYMBOL(closure_debug_destroy);
159
160static struct dentry *closure_debug;
161
162static int debug_seq_show(struct seq_file *f, void *data)
163{
164 struct closure *cl;
1/*
2 * Asynchronous refcounty things
3 *
4 * Copyright 2010, 2011 Kent Overstreet <kent.overstreet@gmail.com>
5 * Copyright 2012 Google, Inc.
6 */
7
8#include <linux/debugfs.h>

--- 148 unchanged lines hidden (view full) ---

157}
158EXPORT_SYMBOL(closure_debug_destroy);
159
160static struct dentry *closure_debug;
161
162static int debug_seq_show(struct seq_file *f, void *data)
163{
164 struct closure *cl;
165
165 spin_lock_irq(&closure_list_lock);
166
167 list_for_each_entry(cl, &closure_list, all) {
168 int r = atomic_read(&cl->remaining);
169
170 seq_printf(f, "%p: %pF -> %pf p %p r %i ",
171 cl, (void *) cl->ip, cl->fn, cl->parent,
172 r & CLOSURE_REMAINING_MASK);

--- 44 unchanged lines hidden ---
166 spin_lock_irq(&closure_list_lock);
167
168 list_for_each_entry(cl, &closure_list, all) {
169 int r = atomic_read(&cl->remaining);
170
171 seq_printf(f, "%p: %pF -> %pf p %p r %i ",
172 cl, (void *) cl->ip, cl->fn, cl->parent,
173 r & CLOSURE_REMAINING_MASK);

--- 44 unchanged lines hidden ---