mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
xl walk: Limit walk concurrent IO (#12885)
We are observing heavy system loads, potentially locking the system up for periods when concurrent listing operations are performed. We place a per-disk lock on walk IO operations. This will minimize the impact of concurrent listing operations on the entire system and de-prioritize them compared to other operations. Single list operations should remain largely unaffected.
This commit is contained in:
@@ -139,6 +139,9 @@ type xlStorage struct {
|
||||
|
||||
ctx context.Context
|
||||
sync.RWMutex
|
||||
|
||||
// mutex to prevent concurrent read operations overloading walks.
|
||||
walkMu sync.Mutex
|
||||
}
|
||||
|
||||
// checkPathLength - returns error if given path name length more than 255
|
||||
|
||||
Reference in New Issue
Block a user