diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-18 22:15:06 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-18 22:15:06 +0100 |
commit | 9c40e15ba8ae000f73c23d89143d6c44b75220fd (patch) | |
tree | 28c9dd049b016245aaf6ed64c53fe085edab1d99 /sys/src/cmd/exportfs/exportfs.c | |
parent | 152c9d525b58a2ed4ea4daac47438efd835202ce (diff) |
exportfs: fix flush races, proc sweeping
Diffstat (limited to 'sys/src/cmd/exportfs/exportfs.c')
-rw-r--r-- | sys/src/cmd/exportfs/exportfs.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/src/cmd/exportfs/exportfs.c b/sys/src/cmd/exportfs/exportfs.c index c16220dee..628975dd7 100644 --- a/sys/src/cmd/exportfs/exportfs.c +++ b/sys/src/cmd/exportfs/exportfs.c @@ -460,8 +460,8 @@ reply(Fcall *r, Fcall *t, char *err) fatal(Enomem); n = convS2M(t, data, messagesize); if(write(netfd, data, n)!=n){ - syslog(0, "exportfs", "short write: %r"); - fatal("mount write"); + /* not fatal, might have got a note due to flush */ + fprint(2, "exportfs: short write in reply: %r\n"); } free(data); } @@ -570,8 +570,6 @@ getsbuf(void) unlock(&sbufalloc); w = emallocz(sizeof(*w) + messagesize); } - w->pid = 0; - w->canint = 0; w->flushtag = NOTAG; return w; } @@ -579,8 +577,6 @@ getsbuf(void) void putsbuf(Fsrpc *w) { - w->pid = 0; - w->canint = 0; w->flushtag = NOTAG; lock(&sbufalloc); w->next = sbufalloc.free; |