Spdk/module/bdev/compress
Shuhei Matsumoto 137684a820 bdev/compress: Ensure release I/O channel on the correct thread at vbdev_reduce_init_cb()
vbdev_reduce_init_cb() had ensured only closing bdev was done on
the correct thread. I/O channel should have been released on the
same thread.

Fix this potential issue. reduce_errno and vol cannot be passed
through message because message can have a single parameter.
So set vol before sending message and use vol as reduce_errno.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I923a9e3148db0f5413a6903d62f869eec122dcca
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1693
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
2020-04-14 11:35:44 +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: Ensure release I/O channel on the correct thread at vbdev_reduce_init_cb() 2020-04-14 11:35:44 +00:00
vbdev_compress.h module/compress: rename set_compress_pmd RPC to match convention 2020-01-31 12:37:31 +00:00