7cef60b657
All connections to a single LUN run on a single thread but this thread may not be the same as the one which opened the backed bdev. So hold pointer to the thread which opened the backed bdev to struct spdk_scsi_lun and use it when calling spdk_bdev_close(). All resource of LUN are accessed on a single thread after getting I/O channel, and so lock is not still necessary. Fixes issue #1024. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ifc1e238d333afcde0cdf9e9b4af3b56ef65a4f7d Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473002 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: yidong0635 <dongx.yi@intel.com> |
||
---|---|---|
.. | ||
dev.c | ||
lun.c | ||
Makefile | ||
port.c | ||
scsi_bdev.c | ||
scsi_internal.h | ||
scsi_pr.c | ||
scsi_rpc.c | ||
scsi.c | ||
task.c |