target:delete device node from devs before reopen device
@@ -250,6 +250,7 @@ done:
* cmdproc thread to reopen all these in parallel.
*/
list_for_each_safe(&tpg->devs, rdev, tmp_rdev, recovery_entry) {
+ list_del(&rdev->recovery_entry);
ret = __tcmu_reopen_dev(rdev->dev, false, -1);
if (ret) {
tcmu_dev_err(rdev->dev, "Could not reinitialize device. (err %d).\n",
