nbd: use the structured req attr check
authorJakub Kicinski <kuba@kernel.org>
Fri, 24 Feb 2023 02:13:01 +0000 (18:13 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 14 Mar 2023 20:17:13 +0000 (14:17 -0600)
commit7399b886b55ef7b489a1bd3939451fcf1792941d
treed688dd71c9b7b8027bf9029d727edf8f07d205f1
parent9195b317f1b62e9efd67d8702c920156135a81b5
nbd: use the structured req attr check

Use the macro for checking presence of required attributes.
It has the advantage of reporting to the user which attr
was missing in a machine-readable format (extack).

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20230224021301.1630703-2-kuba@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c