[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174232274456.158569.739528900664075776.b4-ty@kernel.dk>
Date: Tue, 18 Mar 2025 12:32:24 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Tejun Heo <tj@...nel.org>, Josef Bacik <josef@...icpanda.com>,
Chen Linxuan <chenlinxuan@...ontech.com>
Cc: Wen Tao <wentao@...ontech.com>, cgroups@...r.kernel.org,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH RESEND v2] blk-cgroup: improve policy registration
error handling
On Mon, 17 Mar 2025 10:29:24 +0800, Chen Linxuan wrote:
> This patch improve the returned error code of blkcg_policy_register().
>
> 1. Move the validation check for cpd/pd_alloc_fn and cpd/pd_free_fn
> function pairs to the start of blkcg_policy_register(). This ensures
> we immediately return -EINVAL if the function pairs are not correctly
> provided, rather than returning -ENOSPC after locking and unlocking
> mutexes unnecessarily.
>
> [...]
Applied, thanks!
[1/1] blk-cgroup: improve policy registration error handling
commit: e1a0202c6bfda24002a3ae2115154fa90104c649
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists