From: Derrick Brashear Date: Mon, 18 Oct 2004 04:31:26 +0000 (+0000) Subject: STABLE12-attachserverproc-dont-dequeue-if-not-in-queue-20040602 X-Git-Tag: openafs-stable-1_2_12~24 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=57573f555e910c3df41875f2069129be2bc9ba65;p=packages%2Fo%2Fopenafs.git STABLE12-attachserverproc-dont-dequeue-if-not-in-queue-20040602 FIXES 4699 can't see what else this can be. pile of details in the ticket. (cherry picked from commit 5d9fcb30347e97471e5604828ef433683ca7a766) --- diff --git a/src/rx/rx.c b/src/rx/rx.c index d8ca3f800..cc11cb3d6 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -3992,7 +3992,8 @@ rxi_AttachServerProc(call, socket, tnop, newcallp) MUTEX_ENTER(&rx_stats_mutex); rx_nWaiting--; MUTEX_EXIT(&rx_stats_mutex); - queue_Remove(call); + if (queue_IsOnQueue(call)) + queue_Remove(call); } call->state = RX_STATE_ACTIVE; call->mode = RX_MODE_RECEIVING;