Spdk/module/bdev/compress
Shuhei Matsumoto 6a98b18fb2 bdev/compress: Fix base channel is freed by wrong thread when freeing comp channel
When reduce volume is unloaded at compress bdev removal, the callback
to unload did not get base bdev's I/O channel on the same thread
that opened base bdev.

Hence spdk_put_io_channel() hit assert later.

This patch fixes the bug by sending message to get I/O channel.

Fixes issue #1307.

Besides, add assert to _delete_vol_unload_cb() to detect the unexpected
complex cases. Fix will be added later.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: If4983c2e06d7b0b7618f38fb80f3aa73effe4b83
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1426
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
2020-04-03 06:31:10 +00:00
..
Makefile make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
vbdev_compress_rpc.c module/compress: rename set_compress_pmd RPC to match convention 2020-01-31 12:37:31 +00:00
vbdev_compress.c bdev/compress: Fix base channel is freed by wrong thread when freeing comp channel 2020-04-03 06:31:10 +00:00
vbdev_compress.h module/compress: rename set_compress_pmd RPC to match convention 2020-01-31 12:37:31 +00:00