From 55c71683ef5bf90fd189b68433786742d4b260a0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 1 Nov 1996 23:37:21 +0000 Subject: (conduct_rpc): Unlock OUTSTANDING_LOCK if write fails. --- nfs/rpc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nfs/rpc.c b/nfs/rpc.c index 81c98fc1..cbc5a198 100644 --- a/nfs/rpc.c +++ b/nfs/rpc.c @@ -194,6 +194,7 @@ conduct_rpc (void **rpcbuf, int **pp) cc = write (main_udp_socket, *rpcbuf + sizeof (struct rpc_list), nc); if (cc == -1) { + mutex_unlock (&outstanding_lock); unlink_rpc (hdr); return errno; } @@ -384,7 +385,3 @@ rpc_receive_thread () while (!r); } } - - - - -- cgit v1.2.3