diff options
| author | Fengnan Chang <fengnanchang@gmail.com> | 2025-12-10 16:55:00 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-10 02:40:52 -0700 |
| commit | f22ecf9c14c12918e30f2179ef516e99eb8b2e49 (patch) | |
| tree | a0111d4d992b4e13669924ac2217806c612741f3 /fs/xfs/xfs_dir2_trace.c | |
| parent | 2c38ec934ddfe2d35c813edea2674356bea0fabe (diff) | |
blk-mq: delete task running check in blk_hctx_poll()
blk_hctx_poll() always checks if the task is running or not, and returns
1 if the task is running. This is a leftover from when polled IO was
purely for synchronous IO, and doesn't make sense anymore when polled IO
is purely asynchronous. Similarly, marking the task as TASK_RUNNING is
also superflous, as the very much has to be running to enter the
function in the first place.
It looks like there has been this judgment for historical reasons, and
in very early versions of this function the user would set the process
state to TASK_UNINTERRUPTIBLE.
Signed-off-by: Diangang Li <lidiangang@bytedance.com>
Signed-off-by: Fengnan Chang <changfengnan@bytedance.com>
[axboe: kill all remnants of task running, pointless now. massage message]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/xfs/xfs_dir2_trace.c')
0 files changed, 0 insertions, 0 deletions
