scsi: target: add helper to check if dev is configured
authorMike Christie <mchristi@redhat.com>
Mon, 23 Jul 2018 19:07:45 +0000 (14:07 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Jul 2018 03:17:53 +0000 (23:17 -0400)
commitcb0f32e12cded06e12ff19104eaf90c6f8310558
tree132ce615f2e4130c54d6d12d6269c59d64264cce
parentff07e4a414d963d5b1ee1446f05a451e591256de
scsi: target: add helper to check if dev is configured

This just adds a helper function to check if a device is configured and it
converts the target users to use it. The next patch will add a backend
module user so those types of modules do not have to know the lio core
details.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c
drivers/target/target_core_device.c
drivers/target/target_core_fabric_configfs.c
include/target/target_core_backend.h