Re: [PATCH] null_blk: serialize configfs attribute updates with device setup

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.linux-block
Message-ID <178683849649.1984298.6504743788893693717.b4-ty@b4>
On Thu, 13 Aug 2026 16:14:56 +0200, Niklas Cassel wrote:
> The attribute store methods generated with NULLB_DEVICE_ATTR() refuse to
> change the configuration of a live device by testing
> NULLB_DEV_FL_CONFIGURED, but that flag is only set by
> nullb_device_power_store() after null_add_dev() has returned, and the
> store methods take no lock at all. configfs only serializes writes to
> the same open file (buffer->mutex), so a write to any attribute can run
> concurrently with null_add_dev() and change the device configuration
> while it is being used.
> 
> [...]

Applied, thanks!

[1/1] null_blk: serialize configfs attribute updates with device setup
      commit: 4e1f23f9c33c156be7e313b40695af5a3a834739

Best regards,
-- 
Jens Axboe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.