Reduce shutdown/reboot time

Description

bufdaemon and bufspacedaemon kernel threads use kthread_shutdown() to stop activity on system shutdown. The problem is that kthread_shutdown() has no idea about the wait channel and lock used by specific thread to wake them up reliably. As result, up to 9 threads could consume up to 9 seconds to shutdown for no good reason.

Problem/Justification

None

Impact

None

Activity

Show:

Alexander Motin January 19, 2022 at 12:56 AM

This change introduces specific shutdown functions, knowing how to properly wake up specific threads, reducing wait for those threads on shutdown/reboot from average 4 seconds to effectively zero: https://cgit.freebsd.org/src/commit/?id=b7ff445ffa38282daeab36ce82681ba3f54c8851

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created January 19, 2022 at 12:52 AM
Updated August 2, 2022 at 2:40 PM
Resolved January 19, 2022 at 12:56 AM