netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait
@ 2016-03-22 16:05 Claudio Imbrenda
  2016-03-22 16:05 ` [PATCH v3 1/2] Revert "vsock: Fix blocking ops call in prepare_to_wait" Claudio Imbrenda
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Claudio Imbrenda @ 2016-03-22 16:05 UTC (permalink / raw)
  To: davem; +Cc: labbott, netdev, linux-kernel

This patchset applies on net-next.

I think I found a problem with the patch submitted by Laura Abbott
( https://lkml.org/lkml/2016/2/4/711 ): we might miss wakeups.
Since the condition is not checked between the prepare_to_wait and the
schedule(), if a wakeup happens after the condition is checked but before
the sleep happens, and we miss it. ( A description of the problem can be
found here: http://www.makelinux.net/ldd3/chp-6-sect-2 ).

The first patch reverts the previous broken patch, while the second patch
properly fixes the sleep-while-waiting issue.


Claudio Imbrenda (2):
  Revert "vsock: Fix blocking ops call in prepare_to_wait"
  AF_VSOCK: Shrink the area influenced by prepare_to_wait

 net/vmw_vsock/af_vsock.c | 155 ++++++++++++++++++++++++++---------------------
 1 file changed, 87 insertions(+), 68 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-22 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 16:05 [PATCH v3 0/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait Claudio Imbrenda
2016-03-22 16:05 ` [PATCH v3 1/2] Revert "vsock: Fix blocking ops call in prepare_to_wait" Claudio Imbrenda
2016-03-22 16:05 ` [PATCH v3 2/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait Claudio Imbrenda
2016-03-22 20:19 ` [PATCH v3 0/2] " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).