Skip to content

Commit a065c0f

Browse files
Villemoestorvalds
authored andcommitted
kernel/async.c: remove async_unregister_domain()
No callers in the tree. Link: https://lkml.kernel.org/r/20210309151723.1907838-2-linux@rasmusvillemoes.dk Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 07416af commit a065c0f

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

‎include/linux/async.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ async_schedule_dev_domain(async_func_t func, struct device *dev,
112112
return async_schedule_node_domain(func, dev, dev_to_node(dev), domain);
113113
}
114114

115-
void async_unregister_domain(struct async_domain *domain);
116115
extern void async_synchronize_full(void);
117116
extern void async_synchronize_full_domain(struct async_domain *domain);
118117
extern void async_synchronize_cookie(async_cookie_t cookie);

‎kernel/async.c‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -245,24 +245,6 @@ void async_synchronize_full(void)
245245
}
246246
EXPORT_SYMBOL_GPL(async_synchronize_full);
247247

248-
/**
249-
* async_unregister_domain - ensure no more anonymous waiters on this domain
250-
* @domain: idle domain to flush out of any async_synchronize_full instances
251-
*
252-
* async_synchronize_{cookie|full}_domain() are not flushed since callers
253-
* of these routines should know the lifetime of @domain
254-
*
255-
* Prefer ASYNC_DOMAIN_EXCLUSIVE() declarations over flushing
256-
*/
257-
void async_unregister_domain(struct async_domain *domain)
258-
{
259-
spin_lock_irq(&async_lock);
260-
WARN_ON(!domain->registered || !list_empty(&domain->pending));
261-
domain->registered = 0;
262-
spin_unlock_irq(&async_lock);
263-
}
264-
EXPORT_SYMBOL_GPL(async_unregister_domain);
265-
266248
/**
267249
* async_synchronize_full_domain - synchronize all asynchronous function within a certain domain
268250
* @domain: the domain to synchronize

0 commit comments

Comments
 (0)