You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mm-add-comment-explaining-task-state-setting-in-bdi_forker_thread-fix
fiddle wording Cc: Jan Kara <jack@suse.cz> Cc: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
99ef0315f1
commit
20c8c62891
+2
-3
@@ -404,9 +404,8 @@ static int bdi_forker_thread(void *ptr)
|
||||
/*
|
||||
* In the following loop we are going to check whether we have
|
||||
* some work to do without any synchronization with tasks
|
||||
* waking us up to do work for them. So we have to set task
|
||||
* state already here so that we don't miss wakeups coming
|
||||
* after we verify some condition.
|
||||
* waking us up to do work for them. Set the task state here
|
||||
* so that we don't miss wakeups after verifying conditions.
|
||||
*/
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user