]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: correct stale comment of .get_budget
authorKemeng Shi <shikemeng@huaweicloud.com>
Wed, 18 Jan 2023 09:37:26 +0000 (17:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:44 +0000 (09:32 +0100)
commitf08288e81bb7dcc4e3d98a5af7ebb48acdd6e1b4
treefa840abe1fb338ca5a546e3f80703eeef67e12f3
parente3d6d60a53faa14951a7de8159c3f6876d2e4468
blk-mq: correct stale comment of .get_budget

[ Upstream commit 6cb0b1a9e86699d0a49e6e068c150c18b6c0f58d ]

Commit 48545135b9422 ("blk-mq: don't handle failure in .get_budget")
remove BLK_STS_RESOURCE return value and we only check if we can get
the budget from .get_budget() now.
Correct stale comment that ".get_budget() returns BLK_STS_NO_RESOURCE"
to ".get_budget() fails to get the budget".

Fixes: 48545135b942 ("blk-mq: don't handle failure in .get_budget")
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq-sched.c