Re: patch-2.0.1[67] kills automount daemon (Berkeley amd)

Linus Torvalds (torvalds@cs.helsinki.fi)
Thu, 5 Sep 1996 08:48:52 +0300 (EET DST)


I'm going to release a 2.0.18 reasonably soon, but in the meantime I'd like
to know if this small fix fixes the NFS problems.. Now that the kernel
mailing list seems to work well again, maybe we can use it for what it was
meant for.

Linus

-----
diff -u --recursive --new-file v2.0.17/linux/fs/nfs/rpcsock.c linux/fs/nfs/rpcsock.c
--- v2.0.17/linux/fs/nfs/rpcsock.c Thu Jun 6 21:22:24 1996
+++ linux/fs/nfs/rpcsock.c Tue Sep 3 20:10:17 1996
@@ -564,7 +564,7 @@
unsigned long t0 = jiffies;

rsock->shutdown = 1;
- while (rsock->pending || rsock->backlog) {
+ while (rsock->pending || waitqueue_active(&rsock->backlog)) {
interruptible_sleep_on(&rsock->shutwait);
if (current->signal & ~current->blocked)
return -EINTR;
-----