diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-08-07 15:49:46 -0700 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-08-13 22:04:49 -0400 |
| commit | 720d8b2f2457f4962ca353dd90395e2660d9a10d (patch) | |
| tree | aa018c8c5e8e46c13f2bd8f9f66c26d27a661627 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 376a3960e5efe85ff765abfb5b5b7e4655ad6aed (diff) | |
scsi: ufs: core: Set task state before io_schedule_timeout()
Set the task state to TASK_UNINTERRUPTIBLE before calling
io_schedule_timeout() in ufshcd_wait_for_pending_cmds(). Without
setting the task state, io_schedule_timeout() returns immediately
because the task state remains TASK_RUNNING. This results in a busy loop
that wastes CPU cycles.
Fixes: 2000bc309703 ("scsi: ufs: core: Reduce the clock scaling latency")
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/8fe4526ce272811b28e99048b42358dd8f7c48af.1786142946.git.bvanassche@acm.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
