When removing a target device, the driver previously required the
firmware removal handshake to be fully completed before allowing the
device to be unlinked from the driver's internal target list. If a
non-RAID JBOD drive had already been unregistered from the OS layer
before the removal handshake completed, its entry remained stuck in the
driver's internal list.
Because the stale entry was retained, subsequent re-discovery of the
drive (such as when re-inserting the drive or hot-plugging a replacement)
failed to expose the drive to the OS.
Allow the target entry to be unlinked from the internal list if the
device has already been removed from the OS layer. This ensures stale
entries are cleaned up promptly and allows hot-plugged JBOD drives to be
re-discovered and exposed immediately.