distribution/registry/storage/driver
Oleg Bulatov 258345ba0d Fix signalling Wait in regulator.enter
In some conditions, regulator.exit may not send a signal to blocked
regulator.enter.

Let's assume we are in the critical section of regulator.exit and r.available
is equal to 0. And there are three more gorotines. One goroutine also executes
regulator.exit and waits for the lock. Rest run regulator.enter and wait for
the signal.

We send the signal, and after releasing the lock, there will be lock
contention:

  1. Wait from regulator.enter
  2. Lock from regulator.exit

If the winner is Lock from regulator.exit, we will not send another signal to
unlock the second Wait.

Signed-off-by: Oleg Bulatov <obulatov@redhat.com>
2017-06-02 15:41:55 +02:00
..
azure closes #2224: re-vendor the latest Azure Storage SDK for better performance 2017-04-14 14:20:18 -07:00
base Fix signalling Wait in regulator.enter 2017-06-02 15:41:55 +02:00
factory
filesystem
gcs
inmemory
middleware
oss
s3-aws Support session token 2017-04-25 19:31:50 +02:00
s3-goamz Remove unused function 2017-05-16 17:47:13 +08:00
swift
testdriver
testsuites
fileinfo.go
storagedriver.go