+5
−8
Loading
fio test fails with IO error log on some cases, and spdk_tgt ends in segmentfault. The cause is the content in io descriptor may have been updated by next io request when calling ublk_io_put_buffer. The io_size that ublk_io_get_buffer and ublk_io_put_buffer caculate may be different if caculated from io->iod->nr_sectors. Then it may get the buf from the small buf pool and return to the large buf pool. So record the io size when getting the buf and use this size when putting the buf. Change-Id: I44e4f85f180decd79f806cd5e3a60573e974056a Signed-off-by:Richael Zhuang <richael.zhuang@arm.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19713 Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>