scsi: tcmu: unmap if dev is configured
authorMike Christie <mchristi@redhat.com>
Mon, 23 Jul 2018 19:07:48 +0000 (14:07 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Jul 2018 03:17:53 +0000 (23:17 -0400)
commitdc335a995527fb1ee9ec5649162b22cd1ce728ee
treefddd0e53cc084e2a212e498a23db2cc76a11317c
parenta30b0473b62652f9b8ccb1e4f4a3a3c31d2b72b3
scsi: tcmu: unmap if dev is configured

The tcmu dev is added to the list of tcmu devices during configuration.  At
this time the tcmu setup has completed, but lio core has not completed its
setup. The device is not yet usable so do not try to unmap blocks from it

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_user.c