use all the available nr_requests for NVMe (#18920)

This commit is contained in:
Harshavardhana
2024-01-30 14:10:06 -08:00
committed by GitHub
parent 6da4a9c7bb
commit f25cbdf43c
2 changed files with 21 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ type mrfState struct {
ctx context.Context
pools *erasureServerPools
mu sync.Mutex
mu sync.RWMutex
opCh chan partialOperation
}
@@ -72,6 +72,9 @@ func (m *mrfState) addPartialOp(op partialOperation) {
return
}
m.mu.RLock()
defer m.mu.RUnlock()
select {
case m.opCh <- op:
default: