Loading
bdevperf: g_main_thread calls bdev_open() instead of job->thread
The following patches will enable no_metadata option to each bdev and use new APIs to get metadata configuration. Hence, it will be necessary to open bdev before getting metadata configuration. As a preparation, move bdev open and close operations from job->thread to g_main_thread. set timeout should be called on the thread which called bdev open. Hence, move set timeout operation too. Furthermore, event notification should be redirected from g_main_thread to job->thread. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I3623e7c0ccc314932f79b78243be9ede0b8927b3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25143 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>