From ca98d418d5d75d82721193178e11d1edfa166649 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 4 Mar 2026 01:29:04 +0000 Subject: util/nvmutil: don't usleep on file reads i don't care. it's only 30 tries. usleep can fail, setting errno, and it can actually take longer, depending on the environment. it poisons errno, and makes debugging harder. just remove it. Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 6cb11d55..71fe7123 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -448,9 +448,6 @@ check_read_or_die(const char *rpath, ssize_t rval, size_t rsize, err(EINTR, "%s: max retries exceeded on file: %s", readtype, rpath); - /* Prevent CPU hog when on spin-locked reads. */ - usleep(1); - /* * Bad read, with errno EINTR (syscall interrupted). * Reset the error state and try again. -- cgit v1.2.1