]> www.infradead.org Git - users/sagi/blktests.git/commit
nvme/{033,034,035,036,37}: drop port handle between passthru target setup and cleanup
authorDaniel Wagner <dwagner@suse.de>
Wed, 30 Aug 2023 09:20:18 +0000 (11:20 +0200)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 31 Aug 2023 02:03:59 +0000 (11:03 +0900)
commit76a03c7ddfb0bad0c5a64de19ddcab1c97f3dd44
treeb11e8c0933ed99b1e7627e4637348918ab46b2cb
parentd16a508879aa17f2d716abf44fa49eb2c9556b30
nvme/{033,034,035,036,37}: drop port handle between passthru target setup and cleanup

The passthru nvmet setup and cleanup helpers are using the port as
handle to track resources.

Instead returning the port from the setup call, we figure out in the
cleanup code which resources have been allocated. This avoids passing
around awkward handles.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/nvme/033
tests/nvme/034
tests/nvme/035
tests/nvme/036
tests/nvme/037
tests/nvme/rc