Thread (6 messages) 6 messages, 3 authors, 2026-08-16

Re: [PATCH 0/3] ublk: validate zoned SET_PARAMS earlier

flat view

From: Jens Axboe <axboe@kernel.dk>
Date: 2026-08-16 00:01:54

On Fri, 14 Aug 2026 10:32:23 +0800, Yao Sang wrote:
UBLK_F_ZONED uses params.basic.chunk_sectors as zone size. ublk also
uses it to calculate number of zones with ilog2().

Before this series, SET_PARAMS can accept non-power-of-2 zone size.
Then the device fails later when it is started. Reject it in SET_PARAMS
and add one selftest for this kind of parameter checks.

[...]
Applied, thanks!

[1/3] ublk: reject non-power-of-2 zone sizes in SET_PARAMS
      commit: 2707acf1856da266139986c9398ad722fd4f48c0
[2/3] selftests: ublk: add helper for SET_PARAMS
      commit: 176f02a86c0384df4ba175e319321b07089a8016
[3/3] selftests: ublk: add SET_PARAMS validation test
      commit: 007af5e5cc822aed3a0909534ffb810f7816ed1f

Best regards,
-- 
Jens Axboe


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help