mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
attachserverproc-dont-dequeue-if-not-in-queue-take-two-20040818
nWaiting ended up negative, because the dequeuer (GetCall) decremented.
This commit is contained in:
parent
3de51188f7
commit
399785acf1
@ -3996,11 +3996,12 @@ rxi_AttachServerProc(register struct rx_call *call,
|
||||
if (call->flags & RX_CALL_WAIT_PROC) {
|
||||
/* Conservative: I don't think this should happen */
|
||||
call->flags &= ~RX_CALL_WAIT_PROC;
|
||||
if (queue_IsOnQueue(call)) {
|
||||
queue_Remove(call);
|
||||
MUTEX_ENTER(&rx_stats_mutex);
|
||||
rx_nWaiting--;
|
||||
MUTEX_EXIT(&rx_stats_mutex);
|
||||
if (queue_IsOnQueue(call))
|
||||
queue_Remove(call);
|
||||
}
|
||||
}
|
||||
call->state = RX_STATE_ACTIVE;
|
||||
call->mode = RX_MODE_RECEIVING;
|
||||
|
Loading…
Reference in New Issue
Block a user