OpenBSD CVS

CVS log for src/share/man/man9/task_add.9


[BACK] Up to [local] / src / share / man / man9

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 22 14:10:49 2022 UTC (23 months, 2 weeks ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.22: +9 -2 lines
Diff to previous 1.22 (colored)

Document a locking constraint that applies to barriers.

OK cheloha@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 8 00:29:51 2020 UTC (3 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.21: +2 -5 lines
Diff to previous 1.21 (colored)

taskq_barrier is less restricted now.

but the implementation is so much more complicated.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Apr 28 04:20:40 2019 UTC (5 years, 1 month ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.20: +13 -1 lines
Diff to previous 1.20 (colored)

add WITNESS support to barriers modelled on the timeout stuff visa did.

if a taskq takes a lock, and something holding that lock calls
taskq_barrier, there's a potential deadlock. detect this as a lock
order problem when witness is enable. task_del conditionally followed
by taskq_barrier is a common pattern, so add a taskq_del_barrier
wrapper for it that unconditionally checks for the deadlock, like
timeout_del_barrier.

ok visa@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 1 06:28:05 2019 UTC (5 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

restore El removed in previous;

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 1 03:23:45 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.18: +2 -5 lines
Diff to previous 1.18 (colored)

deprecate TASKQ_CANTSLEEP since nothing uses it anymore

if we ever want it back, it's in the attic.

ok mpi@ visa@ kettenis@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 16 03:40:12 2018 UTC (5 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.17: +15 -3 lines
Diff to previous 1.17 (colored)

document task_pending()

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 13 23:52:49 2017 UTC (6 years, 6 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.16: +16 -2 lines
Diff to previous 1.16 (colored)

add taskq_barrier

taskq_barrier guarantees that any task that was running on the taskq
has finished by the time taskq_barrier returns. it is similar to
intr_barrier.

this is needed for use in ifq_barrier as part of an upcoming change.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 14 15:14:55 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

Remove useless quoting from .Fo and .Fn function names, to prevent
development of a cargo cult in case people look at existing files
for examples.  This achieves a consistent .Fo and .Fn quoting style
across the whole tree.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 9 08:36:53 2015 UTC (9 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

tweak previous;

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 9 03:24:48 2015 UTC (9 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.13: +17 -3 lines
Diff to previous 1.13 (colored)

task_add takes a flags argument now. this throws some words at it,
maybe some will stick.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 27 03:17:35 2015 UTC (9 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.12: +8 -12 lines
Diff to previous 1.12 (colored)

remove the second void * argument on tasks.

when workqs were introduced, we provided a second argument so you
could pass a thing and some context to work on it in. there were
very few things that took advantage of the second argument, so when
i introduced pools i suggested removing it. since tasks were meant
to replace workqs, it was requested that we keep the second argument
to make porting from workqs to tasks easier.

now that workqs are gone, i had a look at the use of the second
argument again and found only one good use of it (vdsp(4) on sparc64
if you're interested) and a tiny handful of questionable uses. the
vast majority of tasks only used a single argument. i have since
modified all tasks that used two args to only use one, so now we
can remove the second argument.

so this is a mechanical change. all tasks only passed NULL as their
second argument, so we can just remove it.

ok krw@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 11 08:47:53 2014 UTC (9 years, 11 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.11: +11 -7 lines
Diff to previous 1.11 (colored)

Create system taskq ("systqmp") which runs without the kernel lock;
currently unused.

ok dlg@
manpage improvement and ok jmc@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 2 13:19:01 2014 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Add missing "SEE ALSO" header.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 13 11:56:44 2014 UTC (10 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.9: +21 -8 lines
Diff to previous 1.9 (colored)

document return values in the RETURN VALUES section.

ingo@ suggested putting RETURN VALUES after CONTEXT, and i agree. this
seems to flow well.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 13 11:44:12 2014 UTC (10 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

introduce a CONTEXT section that describes where you can call the bits of
the API from.

task_add is the first manpage to get this, but hopefully not the last.

inspired by the CONTEXT section in solaris, and introduced here with the
blessing of deraadt@, jmc@, and ingo@.
discussed with jmc@ and ingo@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 21 03:15:46 2014 UTC (10 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

obvious .Pa fixes; found with mandocdb(8)

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 23 04:24:43 2013 UTC (10 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.6: +17 -3 lines
Diff to previous 1.6 (colored)

document TASK_INITIALIZER()

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 9 01:54:49 2013 UTC (10 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.5: +9 -5 lines
Diff to previous 1.5 (colored)

document the global systq.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 30 19:31:30 2013 UTC (10 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

task_systq got removed;

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 30 02:11:32 2013 UTC (10 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.3: +5 -10 lines
Diff to previous 1.3 (colored)

deprecate taskq_systq() and replace it with extern struct taskq
*const systq defined in task.h

this reduces the cost of using the system taskq and looks less ugly.

requested by and ok kettenis@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 29 07:57:57 2013 UTC (10 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

task_add tweaks; ok dlg

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 29 04:35:46 2013 UTC (10 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

u_int -> unsigned int

Revision 1.1 / (download) - annotate - [select for diffs], Tue Oct 29 04:35:20 2013 UTC (10 years, 7 months ago) by dlg
Branch: MAIN

document the kernel task api

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.