Introduce context structure to ensure the callback function to bdev_compress_delete() runs on the original thread. The time to free comp_bdev and the time to call the callback function to bdev_compress_delete() are different. Hence it is necessary to allocate context separately. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I534f5673b58d2a0321ee752534c3ea10fb37b11d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1472 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@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> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |