staging: rtl8712: remove r8712_cmd_thread()->daemonize()
PATCH 1/1 staging: rtl8712: remove r8712_cmd_thread()->daemonize()
daemonize() is only needed when a user-space task does kernel_thread().
r8712_cmd_thread() is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecated daemonize(). It is the only caller of thread_enter() which actually does the call.
Note:
- we are going to remove the sigdelset(blocked) code from allow_signal(), this means that without this patch thread_enter() can't work after that. Not to mention daemonize() should be deprecated.
- as a side effect, this patch changes ->comm. Hopefully this is fine, and padapter->pnetdev->name probably makes more sense anyway.
---
drivers/staging/rtl8712/osdep_service.h | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8712/osdep_service.h renamed from drivers/staging/rtl8712/osdep_service.h~2_daemonize_rtl8712 +0 -1
@@ -203,7 +203,6 @@ static inline unsigned char _cancel_timestatic inline void thread_enter (void *context) { -daemonize ("%s" ,"RTKTHREAD" );allow_signal (SIGTERM ); }
Quoted 12 lines · Oleg Nesterov
daemonize()is only needed when a user-space task doeskernel_thread().
r8712_cmd_thread()is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecateddaemonize(). It is the only caller ofthread_enter()which actually does the call.Note:
- we are going to remove the sigdelset(blocked) code fromallow_signal(), this means that without this patchthread_enter()can't work after that. Not to mentiondaemonize()should be deprecated.
Quoted 5 lines
- as a side effect, this patch changes ->comm. Hopefully this is fine, and
padapter->pnetdev->nameprobably makes more sense anyway.Signed-off-by Oleg Nesterov <[email protected]>
Signature · 1 line
tejun
Quoted 13 lines · Tejun Heo
Quoted 12 lines · Oleg Nesterov
daemonize()is only needed when a user-space task doeskernel_thread().
r8712_cmd_thread()is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecateddaemonize(). It is the only caller ofthread_enter()which actually does the call.Note:
- we are going to remove the sigdelset(blocked) code fromallow_signal(), this means that without this patchthread_enter()can't work after that. Not to mentiondaemonize()should be deprecated.
Quoted 7 lines
Quoted 5 lines
- as a side effect, this patch changes ->comm. Hopefully this is fine, and
padapter->pnetdev->nameprobably makes more sense anyway.Signed-off-by Oleg Nesterov<[email protected]>Acked-by Tejun Heo<[email protected]>
Quoted 12 lines · Oleg Nesterov
daemonize()is only needed when a user-space task doeskernel_thread().
r8712_cmd_thread()is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecateddaemonize(). It is the only caller ofthread_enter()which actually does the call.Note:
- we are going to remove the sigdelset(blocked) code fromallow_signal(), this means that without this patchthread_enter()can't work after that. Not to mentiondaemonize()should be deprecated.
Quoted 5 lines
- as a side effect, this patch changes ->comm. Hopefully this is fine, and
padapter->pnetdev->nameprobably makes more sense anyway.Signed-off-by Oleg Nesterov <[email protected]>