Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365470
b: refs/heads/master
c: cc2a8b1
h: refs/heads/master
v: v3
  • Loading branch information
Lai Jiangshan authored and Tejun Heo committed Mar 12, 2013
1 parent 5e74bd7 commit 08dba2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 92266d6ef60c2381c980c6cdcb2a5c1667b36b49
refs/heads/master: cc2a8b1a5595a435191fb197d92d1f3e193c9a6d
7 changes: 2 additions & 5 deletions trunk/include/linux/async.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
typedef u64 async_cookie_t;
typedef void (async_func_ptr) (void *data, async_cookie_t cookie);
struct async_domain {
struct list_head node;
struct list_head pending;
unsigned registered:1;
};
Expand All @@ -27,17 +26,15 @@ struct async_domain {
* domain participates in global async_synchronize_full
*/
#define ASYNC_DOMAIN(_name) \
struct async_domain _name = { .node = LIST_HEAD_INIT(_name.node), \
.pending = LIST_HEAD_INIT(_name.pending), \
struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \
.registered = 1 }

/*
* domain is free to go out of scope as soon as all pending work is
* complete, this domain does not participate in async_synchronize_full
*/
#define ASYNC_DOMAIN_EXCLUSIVE(_name) \
struct async_domain _name = { .node = LIST_HEAD_INIT(_name.node), \
.pending = LIST_HEAD_INIT(_name.pending), \
struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \
.registered = 0 }

extern async_cookie_t async_schedule(async_func_ptr *ptr, void *data);
Expand Down

0 comments on commit 08dba2a

Please sign in to comment.