Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: fix error in handling dead task for ioprio setting
Don't combine the task exiting and "already have io_context" case, we need to just abort if the task is marked as dead. Return -ESRCH, which is the documented value for ioprio_set() if the specified task could not be found. Reported-by: Dan Carpenter <[email protected]> Reported-by: [email protected] Fixes: 5fc11ee ("block: open code create_task_io_context in set_task_ioprio") Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information