Thread (138 messages) 138 messages, 9 authors, 2015-11-06

Re: [Bug 106241] New: shutdown(3)/close(3) behaviour is incorrect for sockets in accept(3)

From: Eric Dumazet <hidden>
Date: 2015-10-21 21:18:32

On Wed, 2015-10-21 at 18:04 +0200, Casper.Dik@oracle.com wrote:
It is only expensive within the process itself. 
thread synchro would require additional barriers to maintain this state,
for a very unlikely case.

The atomic_{inc|dec}() on file refcount are already a problem.

We certainly do not use/take a lock to find a file pointer into file
descriptor table.

(This lock is only used at open() or close() time)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help