Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153141924
D19925.id56252.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
887 B
Referenced Files
None
Subscribers
None
D19925.id56252.diff
View Options
Index: sys/kern/subr_epoch.c
===================================================================
--- sys/kern/subr_epoch.c
+++ sys/kern/subr_epoch.c
@@ -579,6 +579,17 @@
callback(ctx);
}
+void
+epoch_call_drain(epoch_t epoch)
+{
+ int cpu;
+
+ CPU_FOREACH(cpu) {
+ gtaskqueue_drain_all(
+ (DPCPU_ID_PTR(cpu, epoch_cb_task))->gt_taskqueue);
+ }
+}
+
static void
epoch_call_task(void *arg __unused)
{
Index: sys/sys/epoch.h
===================================================================
--- sys/sys/epoch.h
+++ sys/sys/epoch.h
@@ -70,6 +70,7 @@
void epoch_wait(epoch_t epoch);
void epoch_wait_preempt(epoch_t epoch);
void epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t));
+void epoch_call_drain(epoch_t epoch);
int in_epoch(epoch_t epoch);
int in_epoch_verbose(epoch_t epoch, int dump_onfail);
DPCPU_DECLARE(int, epoch_cb_count);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 11:00 AM (5 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31827809
Default Alt Text
D19925.id56252.diff (887 B)
Attached To
Mode
D19925: Add epoch_call_drain() function to wait until scheduled epoch_call() requests will be finished.
Attached
Detach File
Event Timeline
Log In to Comment