mirror_zfs/include/os/linux/spl/sys
Alexander Motin e0bd8118d0
Linux: Cleanup taskq threads spawn/exit
This changes taskq_thread_should_stop() to limit maximum exit rate
for idle threads to one per 5 seconds.  I believe the previous one
was broken, not allowing any thread exits for tasks arriving more
than one at a time and so completing while others are running.

Also while there:
 - Remove taskq_thread_spawn() calls on task allocation errors.
 - Remove extra taskq_thread_should_stop() call.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #15873
2024-02-13 11:15:16 -08:00
..
ia32 x86 asm: Replace .align with .balign 2023-01-24 09:04:39 -08:00
acl.h
atomic.h
byteorder.h Reduce false positives from Static Analyzers 2022-09-30 15:30:12 -07:00
callb.h
callo.h
cmn_err.h spl: cmn_err_once() should be usable in brace-less if else statements 2023-03-15 11:13:25 -07:00
condvar.h
cred.h Linux 6.8 compat: handle mnt_idmap user_namespace change 2024-01-29 11:36:07 -08:00
ctype.h
debug.h Add VERIFY0P() and ASSERT0P() macros. 2023-09-19 17:21:55 -07:00
disp.h
dkio.h
errno.h
fcntl.h
file.h
inttypes.h
isa_defs.h Add loongarch64 support 2023-04-25 16:05:45 -07:00
kmem_cache.h Workaround UBSAN errors for variable arrays 2023-11-12 16:26:07 -08:00
kmem.h Use __attribute__((malloc)) on memory allocation functions 2023-05-26 15:47:52 -07:00
kstat.h Cleanup: Switch to strlcpy from strncpy 2022-09-27 16:35:29 -07:00
list.h Remove list_size struct member from list implementation 2024-01-26 14:46:42 -08:00
misc.h zed: mark disks as REMOVED when they are removed 2022-09-28 09:48:46 -07:00
mod_os.h
mutex.h Add mutex_enter_interruptible() for interruptible sleeping IOCTLs 2023-10-26 09:17:40 -07:00
param.h
proc.h
processor.h
procfs_list.h
random.h
rwlock.h
shrinker.h Linux 6.7 compat: rework shrinker setup for heap allocations 2023-12-20 11:47:55 -08:00
sid.h
signal.h
simd.h
stat.h
string.h Linux 6.8 compat: implement strlcpy fallback 2024-01-29 11:36:07 -08:00
sunddi.h
sysmacros.h zfs_rename: support RENAME_* flags 2022-10-28 09:49:20 -07:00
systeminfo.h
taskq.h Linux: Cleanup taskq threads spawn/exit 2024-02-13 11:15:16 -08:00
thread.h
time.h
timer.h
trace_spl.h
trace_taskq.h
trace.h
tsd.h
types32.h
types.h Linux 6.8 compat: handle mnt_idmap user_namespace change 2024-01-29 11:36:07 -08:00
uio.h dmu: Allow buffer fills to fail 2023-12-15 09:51:41 -08:00
user.h
vfs.h
vmem.h Use __attribute__((malloc)) on memory allocation functions 2023-05-26 15:47:52 -07:00
vmsystm.h Add membar_sync 2022-09-20 15:32:44 -07:00
vnode.h
wait.h
wmsum.h
zmod.h
zone.h