+9
−8
Loading
Since bdev->internal.mutex protects variables in bdev->internal, there's no need to init the fields of spdk_bdev_desc struct and free the struct when claim_module exists within the mutex lock. Reducing critical area could help to reduce lock competition caused by opening bdev concurrently. Change-Id: Ie6b2a63e44a97cfed914fa6d8adef2c5ec3ac300 Signed-off-by:lorneli <lorneli@163.com> Reviewed-on: https://review.gerrithub.io/c/438514 Reviewed-by:
wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-by:
GangCao <gang.cao@intel.com> Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>