aboutsummaryrefslogtreecommitdiffstats
path: root/module/lua/lbaselib.c
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2023-10-13 13:41:11 -0400
committerTony Hutter <[email protected]>2023-11-06 16:33:18 -0800
commitb76724ae478a7c2f73693b39d8009101efb54995 (patch)
treed4ab3688506425f41948ec1166cb107271b6c014 /module/lua/lbaselib.c
parent459c99ff2339a4a514abcf2255f9b3e5324ef09e (diff)
FreeBSD: Improve taskq wrapper
- Group tqent_task and tqent_timeout_task into a union. They are never used same time. This shrinks taskq_ent_t from 192 to 160 bytes. - Remove tqent_registered. Use tqent_id != 0 instead. - Remove tqent_cancelled. Use taskqueue pending counter instead. - Change tqent_type into uint_t. We don't need to pack it any more. - Change tqent_rc into uint_t, matching refcount(9). - Take shared locks in taskq_lookup(). - Call proper taskqueue_drain_timeout() for TIMEOUT_TASK in taskq_cancel_id() and taskq_wait_id(). - Switch from CK_LIST to regular LIST. Reviewed-by: Allan Jude <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Mateusz Guzik <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #15356
Diffstat (limited to 'module/lua/lbaselib.c')
0 files changed, 0 insertions, 0 deletions