Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350311
b: refs/heads/master
c: c68eee1
h: refs/heads/master
i:
  350309: 72bec4b
  350307: 23164bd
  350303: f85a831
v: v3
  • Loading branch information
Tejun Heo committed Jan 23, 2013
1 parent e84d3ad commit 09a0c57
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 8723d5037cafea09c7242303c6c8e5d7058cec61
refs/heads/master: c68eee14ec2da345e86f2778c8570759309a4a2e
11 changes: 6 additions & 5 deletions trunk/kernel/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ asynchronous and synchronous parts of the kernel.

static async_cookie_t next_cookie = 1;

#define MAX_WORK 32768
#define MAX_WORK 32768
#define ASYNC_COOKIE_MAX ULLONG_MAX /* infinity cookie */

static LIST_HEAD(async_pending);
static ASYNC_DOMAIN(async_dfl_domain);
Expand All @@ -88,8 +89,8 @@ static atomic_t entry_count;
*/
static async_cookie_t __lowest_in_progress(struct async_domain *domain)
{
async_cookie_t first_running = next_cookie; /* infinity value */
async_cookie_t first_pending = next_cookie; /* ditto */
async_cookie_t first_running = ASYNC_COOKIE_MAX;
async_cookie_t first_pending = ASYNC_COOKIE_MAX;
struct async_entry *entry;

/*
Expand Down Expand Up @@ -269,7 +270,7 @@ void async_synchronize_full(void)
domain = list_first_entry(&async_domains, typeof(*domain), node);
spin_unlock_irq(&async_lock);

async_synchronize_cookie_domain(next_cookie, domain);
async_synchronize_cookie_domain(ASYNC_COOKIE_MAX, domain);
} while (!list_empty(&async_domains));
mutex_unlock(&async_register_mutex);
}
Expand Down Expand Up @@ -305,7 +306,7 @@ EXPORT_SYMBOL_GPL(async_unregister_domain);
*/
void async_synchronize_full_domain(struct async_domain *domain)
{
async_synchronize_cookie_domain(next_cookie, domain);
async_synchronize_cookie_domain(ASYNC_COOKIE_MAX, domain);
}
EXPORT_SYMBOL_GPL(async_synchronize_full_domain);

Expand Down

0 comments on commit 09a0c57

Please sign in to comment.