missing put in AFS client
David Howells
maintainerPATCH 1/1 missing put in AFS client
Hi Linus,
This patch fixes a bug in my AFS client in which a put of an outstanding call was missing in the unmount cleanup code. This occasionally resulted in the AFS module becoming unremovable.
David
fs/afs/cmservice.c +3 -4
@@ -129,11 +129,7 @@/* only certain signals are of interest */ spin_lock_irq (¤t->sig->siglock);siginitsetinv (¤t->blocked,0 ); -#if LINUX_VERSION_CODE >KERNEL_VERSION (2 ,5 ,3 )recalc_sigpending (); -#else -recalc_sigpending (current); -#endif spin_unlock_irq (¤t->sig->siglock);/* loop around looking for things to attend to */
@@ -360,6 +356,9 @@rxrpc_call_abort (call,-ESRCH );/* abort, dequeue and put */ +_debug ("nuking active call %08x.%d" , +ntohl (call->conn->conn_id),ntohl (call->call_id)); +rxrpc_put_call (call);rxrpc_put_call (call);spin_lock (&afscm_calls_lock);