Spdk/test/unit/lib/bdev
Shuhei Matsumoto 3522d43a95 bdev: Unify _resize_notify() and _remove_notify()
The next patch will improve media mgmt notifications but it will be
almost same as _resize_notify() and _remove_notify().

On the other hand, there are a few differences between _resize_notify()
and _remove_notify(). _remove_notify() will be better.

To avoid duplication, unify _resize_notify() and _remove_notify() by
adding abstraction event_notify() and _event_notify().

Add unit tests for the complex race conditions.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: Ibe2478479c61459c0da0db8d28c7273f05275e0f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16577
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
2023-01-31 15:28:37 +00:00
..
bdev_zone.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev.c bdev: add claim type 2023-01-05 23:28:32 +00:00
compress.c bdev/compress: Port to use accel_fw instead of compressdev 2023-01-20 10:26:21 +00:00
crypto.c bdev/crypto: Use accel framework 2023-01-19 22:00:58 +00:00
gpt update Intel copyright notices 2022-11-10 08:28:53 +00:00
mt bdev: Unify _resize_notify() and _remove_notify() 2023-01-31 15:28:37 +00:00
nvme bdev_nvme: record io paths' stat before being destroyed 2023-01-19 01:57:11 +00:00
part.c lib/part: check the return of spdk_bdev_register 2023-01-18 15:15:02 +00:00
pmem update Intel copyright notices 2022-11-10 08:28:53 +00:00
raid bdev/raid0: Support resize when increasing the size of base bdevs 2023-01-17 19:45:34 +00:00
scsi_nvme.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_lvol.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_zone_block.c bdev: add claim type 2023-01-05 23:28:32 +00:00
Makefile configure: rename --with-reduce --with-vbdev-compress 2022-12-08 12:55:27 +00:00