Spdk/test/vhost
Mike Gerdts 486651f790 test/vhost: close bdev before claim for lvs
The original implementation of bdev claims allows a module to establish
an exclusive writer claim on a bdev that has other descriptors open for
writing. This is arguably a bug. With claims v2, this bug does not
exist. The conversion of spdk_bs_bdev_claim() to claims v2 exposes this
bug in the vhost_negative test.

This patch removes an extraneous vhost_scsi_controller_add_target RPC
call that left Malloc0 open read-write while bdev_lvol_create_lvstore
tries to create an lvstore on Malloc0.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: I963e210e1bc033d8720e240760004ed8aef7fda3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16169
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
2023-02-09 11:20:34 +00:00
..
common test/fio: supress fio output files 2022-06-23 07:43:36 +00:00
fio add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
fiotest add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
fuzz add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
hotplug add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
initiator add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
integrity add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
lvol add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
migration misc: Fixes targeted for latest shellcheck 2023-01-16 09:45:23 +00:00
other test/vhost: close bdev before claim for lvs 2023-02-09 11:20:34 +00:00
perf_bench test/vhost: add iobuf options to performance test 2023-01-17 09:50:00 +00:00
readonly add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
shared add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
vhost_boot test/vhost_boot: Use string to check for disk device 2022-12-06 08:40:46 +00:00
windows add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
common.sh test/vhost: add iobuf options to performance test 2023-01-17 09:50:00 +00:00
manual.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
vhost.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00