gvisor/pkg/sentry/fs/gofer
Nicolas Lacasse 573622fdca Fix data race in fs.Async.
Replaces the WaitGroup with a RWMutex. Calls to Async hold the mutex for
reading, while AsyncBarrier takes the lock for writing. This ensures that all
executing Async work finishes before AsyncBarrier returns.

Also pushes the Async() call from Inode.Release into
gofer/InodeOperations.Release(). This removes a recursive Async call which
should not have been allowed in the first place. The gofer Release call is the
slow one (since it may make RPCs to the gofer), so putting the Async call there
makes sense.

PiperOrigin-RevId: 223093067
Change-Id: I116da7b20fce5ebab8d99c2ab0f27db7c89d890e
2018-11-27 18:17:09 -08:00
..
BUILD Convert Unix transport to syserr 2018-10-24 11:05:08 -07:00
attr.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
cache_policy.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
context_file.go Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
device.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
file.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
file_state.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
fs.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
gofer_test.go Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
handles.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
inode.go Fix data race in fs.Async. 2018-11-27 18:17:09 -08:00
inode_state.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
path.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
session.go Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
session_state.go Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
socket.go Convert Unix transport to syserr 2018-10-24 11:05:08 -07:00
util.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00