hc
2023-11-07 f45e756958099c35d6afb746df1d40a1c6302cfc
kernel/include/linux/kthread.h
....@@ -87,7 +87,7 @@
8787
8888 struct kthread_worker {
8989 unsigned int flags;
90
- spinlock_t lock;
90
+ raw_spinlock_t lock;
9191 struct list_head work_list;
9292 struct list_head delayed_work_list;
9393 struct task_struct *task;
....@@ -108,7 +108,7 @@
108108 };
109109
110110 #define KTHREAD_WORKER_INIT(worker) { \
111
- .lock = __SPIN_LOCK_UNLOCKED((worker).lock), \
111
+ .lock = __RAW_SPIN_LOCK_UNLOCKED((worker).lock), \
112112 .work_list = LIST_HEAD_INIT((worker).work_list), \
113113 .delayed_work_list = LIST_HEAD_INIT((worker).delayed_work_list),\
114114 }