+39
−16
Loading
This patch adds reference counter and gurading mutex to bdev_desc structure to keep track of in-flight messages and avoid release of descriptor until all of messages has been processed. With reference counter existing remove_scheduled field in descriptor structure is not needed anymore. Signed-off-by:Evgeniy Kochetov <evgeniik@mellanox.com> Signed-off-by:
Sasha Kotchubievsky <sashakot@mellanox.com> Signed-off-by:
Alexey Marchuk <alexeymar@mellanox.com> Change-Id: I97f78955362b04131abf202ba04e6d60343f3faf Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469620 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>