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
Please register or sign in to comment