Re: [PATCH] block: allow IOC_PR_READ_* ioctls with BLK_OPEN_READ
From: Jens Axboe
Date: Wed Feb 11 2026 - 12:37:37 EST
On Tue, 10 Feb 2026 11:36:17 -0500, Stefan Hajnoczi wrote:
> The recently added IOC_PR_READ_* ioctls require the same BLK_OPEN_WRITE
> permission as the older persistent reservation ioctls. This has the
> drawback that udev triggers when the file descriptor is closed,
> resulting in unnecessary activity like scanning partitions even though
> these read-only ioctls do not modify the device.
>
> Change IOC_PR_READ_KEYS and IOC_PR_READ_RESERVATION to require
> BLK_OPEN_READ. This prevents unnecessary activity every time `blkpr
> --read-keys` or `blkpr --read-reservation` is invoked by shell scripts,
> for example.
>
> [...]
Applied, thanks!
[1/1] block: allow IOC_PR_READ_* ioctls with BLK_OPEN_READ
commit: 5b88af7113feba2f0ae3402bb57cb5c94eea7dc3
Best regards,
--
Jens Axboe