Skip to content

Commit e3b929b

Browse files
Gao XiangIngo Molnar
authored andcommitted
sched/core: Add __sched tag for io_schedule()
Non-inline io_schedule() was introduced in: commit 10ab564 ("sched/core: Separate out io_schedule_prepare() and io_schedule_finish()") Keep in line with io_schedule_timeout(), otherwise "/proc/<pid>/wchan" will report io_schedule() rather than its callers when waiting for IO. Reported-by: Jilong Kou <[email protected]> Signed-off-by: Gao Xiang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Miao Xie <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Fixes: 10ab564 ("sched/core: Separate out io_schedule_prepare() and io_schedule_finish()") Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 23da766 commit e3b929b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5122,7 +5122,7 @@ long __sched io_schedule_timeout(long timeout)
51225122
}
51235123
EXPORT_SYMBOL(io_schedule_timeout);
51245124

5125-
void io_schedule(void)
5125+
void __sched io_schedule(void)
51265126
{
51275127
int token;
51285128

0 commit comments

Comments
 (0)