[PATCH] nvme-ioctl: move capable() admin check to the end

Jens Axboe axboe at kernel.dk
Thu Nov 30 15:09:54 PST 2023


On 11/30/23 1:19 PM, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
> 
> This can be an expensive call on some distros. Move it to the end after
> checking the cheaper ways to determine if the command is allowed.

Reviewed-by: Jens Axboe <axboe at kernel.dk>

-- 
Jens Axboe





More information about the Linux-nvme mailing list