This commit is contained in:
Matthew Ahrens 2024-01-29 13:08:34 -05:00 committed by GitHub
commit 46c90ca304
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -370,10 +370,10 @@ vdev_disk_open(vdev_t *v, uint64_t *psize, uint64_t *max_psize,
if (v->vdev_removed)
break;
schedule_timeout(MSEC_TO_TICK(10));
msleep(10);
} else if (unlikely(PTR_ERR(bdev) == -ERESTARTSYS)) {
timeout = MSEC2NSEC(zfs_vdev_open_timeout_ms * 10);
continue;
msleep(10);
} else if (IS_ERR(bdev)) {
break;
}

View File

@ -769,7 +769,7 @@ retry:
if ((gethrtime() - start) > timeout)
return (SET_ERROR(-ERESTARTSYS));
schedule_timeout(MSEC_TO_TICK(10));
msleep(10);
goto retry;
#endif
} else {