Skip to content
Commit e221777a authored by Andrew Webster's avatar Andrew Webster Committed by Gregory Nutt
Browse files

TCP: post buffer semaphore before re-acquiring both

TCP uses two semaphores for buffers, one for the entire buffer pool,
and one for the number of allowed buffers for readahead.  To avoid
double taking a semaphore under heavy load, release the semaphore
after waiting before trying to acquire both again.
parent 4875c6bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment