From 483389f2e21a075f458650b07f7c1a5fc3535464 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 24 Oct 2023 17:21:06 -0700 Subject: [PATCH] set diskMaxConcurrent to 32 if nrRequests is lower --- cmd/xl-storage-disk-id-check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/xl-storage-disk-id-check.go b/cmd/xl-storage-disk-id-check.go index 2ff9c5042..916281299 100644 --- a/cmd/xl-storage-disk-id-check.go +++ b/cmd/xl-storage-disk-id-check.go @@ -200,7 +200,7 @@ func newXLStorageDiskIDCheck(storage *xlStorage, healthCheck bool) *xlStorageDis diskMaxConcurrent = 512 if storage.rotational { diskMaxConcurrent = int(storage.nrRequests) / 2 - if diskMaxConcurrent == 0 { + if diskMaxConcurrent < 32 { diskMaxConcurrent = 32 } }