Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758834AbcCVQGD (ORCPT ); Tue, 22 Mar 2016 12:06:03 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:54177 "EHLO e06smtp17.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758121AbcCVQF4 (ORCPT ); Tue, 22 Mar 2016 12:05:56 -0400 X-IBM-Helo: d06dlp02.portsmouth.uk.ibm.com X-IBM-MailFrom: imbrenda@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;netdev@vger.kernel.org From: Claudio Imbrenda To: davem@davemloft.net Cc: labbott@fedoraproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] AF_VSOCK: Shrink the area influenced by prepare_to_wait Date: Tue, 22 Mar 2016 17:05:50 +0100 Message-Id: <1458662752-2415-1-git-send-email-imbrenda@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.1 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16032216-0005-0000-0000-00000EB8041E Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 22 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