commit | 5ec79f1a042982f90f790e97773af6849e8d5ddc | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Nov 22 10:24:07 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Nov 22 10:24:07 2022 +0100 |
tree | 65e25b114f5a272cdf1c4509cf4a97680b5fe858 | |
parent | fc50b9dd14a42aa6b56133edbf7b926368c9a710 [diff] |
BUILD: sched: fix build with DEBUG_THREAD with the previous commit The build with DEBUG_THREAD was broken by commit fc50b9dd1 ("BUG/MAJOR: sched: protect task during removal from wait queue"). It took me a while to figure how to declare and aligned and initialized rwlock that wasn't static, but it turns out that __decl_aligned_rwlock() does exactly this, so that we don't have to assign an integer value when a struct is expected in case of debugging. No backport is needed.