diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-08-08 23:28:47 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-08-08 23:28:47 +0200 |
| commit | 45333cdc92654eb58dc8c820dd58ae23c4a49640 (patch) | |
| tree | 3f23c7d1ce79c1ca9e6d911da77fe96878c004d0 /lib/cmap | |
| parent | bc306a5a6322fece62d459b6f80ecc8f9867dcb1 (diff) | |
| download | plan9front-45333cdc92654eb58dc8c820dd58ae23c4a49640.tar.xz | |
devmnt: fix potential race with mntflushfree(), remove mntstats, 0 vs nil cleanup
when mountmux() completes a request for another process, enforce odering
of the loads and stores to the request prior to writing q->done = 1
so mntflushfree() sees q->done != 0 only when the request has actually
completed. otherwise, the q->done = 1 store could have been reordered
before the load from q->z, reading from already freed request and causing
spurious wakeups.
removing unused mntstats callback.
use nil for pointers instead of 0.
Diffstat (limited to 'lib/cmap')
0 files changed, 0 insertions, 0 deletions
