From 9c40e15ba8ae000f73c23d89143d6c44b75220fd Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 18 Feb 2014 22:15:06 +0100 Subject: exportfs: fix flush races, proc sweeping --- sys/src/cmd/exportfs/exportfs.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/src/cmd/exportfs/exportfs.c') 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; -- cgit v1.2.3