target: Fix se_tpg_tfo->tf_subsys regression + remove tf_subsystem
There is just one configfs subsystem in the target code, so we might as well add two helpers to reference / unreference it from the core code instead of passing pointers to it around. This fixes a regression introduced for v4.1-rc1 with commit 9ac8928e, where configfs_depend_item() callers using se_tpg_tfo->tf_subsys would fail, because the assignment from the original target_core_subsystem[] is no longer happening at target_register_template() time. (Fix target_core_exit_configfs pointer dereference - Sagi) Signed-off-by:Christoph Hellwig <hch@lst.de> Reported-by:
Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by:
Nicholas Bellinger <nab@linux-iscsi.org>
Showing
- drivers/scsi/qla2xxx/tcm_qla2xxx.c 2 additions, 4 deletionsdrivers/scsi/qla2xxx/tcm_qla2xxx.c
- drivers/target/target_core_configfs.c 14 additions, 16 deletionsdrivers/target/target_core_configfs.c
- drivers/target/target_core_internal.h 0 additions, 3 deletionsdrivers/target/target_core_internal.h
- drivers/target/target_core_pr.c 7 additions, 25 deletionsdrivers/target/target_core_pr.c
- drivers/target/target_core_xcopy.c 6 additions, 9 deletionsdrivers/target/target_core_xcopy.c
- drivers/vhost/scsi.c 2 additions, 4 deletionsdrivers/vhost/scsi.c
- include/target/target_core_configfs.h 0 additions, 2 deletionsinclude/target/target_core_configfs.h
- include/target/target_core_fabric.h 3 additions, 1 deletioninclude/target/target_core_fabric.h
Loading
Please register or sign in to comment