Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1177231imm; Tue, 3 Jul 2018 06:53:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIhXDgOoFGNkWO964ajpaJi4V1P1ESMs/nHaRLRR6PhpClOVTppPjZaWJ6C1zpzSohlhbOA X-Received: by 2002:a63:370f:: with SMTP id e15-v6mr25388323pga.192.1530626032155; Tue, 03 Jul 2018 06:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530626032; cv=none; d=google.com; s=arc-20160816; b=tJIneXZOd1YaXoVrt40GpeTmClLfBMdjNknKscysbaFUlxaeUBSUouBD/UYjED5bCc X9/Md6drFZFXlYjUkf2yHsxUmHm1X15Hvs5nyE10kDhwpCvO9dH94qjXGUOOi2CeFOz4 jLFs7HBVhiTaxxoQe++MWvpbktk/4JVRk11xVTt+ta36NU+mZM/aIaDL9TZ28lAqt9ih ioUWznpGgz57BoKPrGM+uSqpJJUDD/GJGVsEA4K1l3SV4s4Xo7PfqPXfURZ1r1KUPgc9 kQ8zQ5Hae3SoJpGvTNXwn7vo6eL4lxYobcoASz0MhEIr2JHXdE1+uxbmnoDkwdbZfbBj kTNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:autocrypt :openpgp:from:references:cc:to:subject:arc-authentication-results; bh=KDUeuQXy2WHTg8RpedPy32Z3OtfbrMPbpv4cBuXe034=; b=0G+cu47JzoU4Y4rpkbK/Nts9Ja0JVvb5MEc7ePrL9VqceLCdmL0FVS4TpvdhTvKYmb tck2qnWsKJCJ2u0n9DdIM413nUuuaV9vf8ATgg5rKi0GQgD+dYPGhmotYEj7EweeYVjN er1mPirGuFmdvqe0ErzjJUJEvZROUUcSiVw6xwYd+m0KszZmSlWP2xVi57hqM/pqNN7y VMN2iAm5vvHfbd7vERtIvncG8IzMzGAkyj7tq376HjCY/9CfiHE4nt2PKUlOFoVrnqWP NRHPBqbcnYUzXmT0ZVgMSCrjPHFbyO6NcbOq+muwhsLw1BQklmqvoB7mk5KQtVzmvKBd OFog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19-v6si1118908pgi.494.2018.07.03.06.53.37; Tue, 03 Jul 2018 06:53:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753156AbeGCNwL (ORCPT + 99 others); Tue, 3 Jul 2018 09:52:11 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35556 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752863AbeGCNwI (ORCPT ); Tue, 3 Jul 2018 09:52:08 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63DnLuo127313 for ; Tue, 3 Jul 2018 09:52:07 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k09dh30xd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 09:52:07 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 14:52:06 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 3 Jul 2018 14:52:04 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63Dq3YS31916108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 13:52:03 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A01BA4C04A; Tue, 3 Jul 2018 16:52:28 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 595904C046; Tue, 3 Jul 2018 16:52:28 +0100 (BST) Received: from oc0447013845.ibm.com (unknown [9.152.224.125]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 3 Jul 2018 16:52:28 +0100 (BST) Subject: Re: [GIT] Networking To: Linus Torvalds , David Miller Cc: Andrew Morton , Network Development , Linux Kernel Mailing List References: <20180702.220348.527254946062449999.davem@davemloft.net> From: Ursula Braun Openpgp: preference=signencrypt Autocrypt: addr=ubraun@linux.ibm.com; keydata= xsFNBFfk6uIBEADL7CmNIA6b1fxIX9RZltqQwLRemtjMyS1iSLenbaS0NMF2MLWgSsXyuy0A 0Bz5h+xlOt3SMj7jv8YZmFvSw1EXElJ+RMa/LeiN51zDLICNgcr459odThtqrjEsJdoOVFY1 veN7VZrMUllLyJ/w7e6gBOPJYd2pSAp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9Y4D2ANmumdJgvEAPLdEm3kLEL858HVx7GJolVrA9szN3a 82YVrJiaXgSVf3j6hSl1tI2qeSRTLNzgfFJUP7EI8WAMI0HV70Ilh3b6HEq7Mcts9uEFasz1 FidTJ0P4oM8mGVuWk47ozXoqIFtyqDfV9lKRaj8oC8gW9zDcNeQXdJzGbjR8WQa2J4BjN2ir G1uP1uWmXa9BhZYFQizhRkboZvkVHQNw6MxkQPhK1DNdQb+Z2uH8ELD41Kw3nxLnIHb3w7Ff mS8HBL+cu9sNWrW2TXZ1NTJucTg3+2zRHnpGzt11roz5xgEWxPRraZo1SsPOJ5eAxi2u/JNo AFLDNjI9K6N5ZJQfJSlbQ9+6nOzW1th8K2iPcPWuWbplQKeaRo6UQCafCJaj+CxC2iTzmzau Sw+xokHdgtDvSBFHvpJf0atERNKd5bWcJGtpxQxPQlx/XsWm4pB4XXlbk1WjOoFQeRQOyWCv eHRz7wGpY0fe9Q/UWkV40gLoP6d9BD9ZWbGvvT2NZtDCnaHTZ/trtADgxno5TVdr3VzIHah3 mLlLUk+oxMnqJvLTPXppz2/0AsGbEFcLs6fO7P1zr48yAGzNqXlZCiCUZ5DPqvAeOEFHiJUh HjXBWPHQYZeG0DNdRY/dunPOGKIYwUlSY/SaIGvstrmeIGlMBd3TqWZ8qIqvrg== Date: Tue, 3 Jul 2018 15:52:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18070313-4275-0000-0000-00000294B8A4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070313-4276-0000-0000-0000379C3793 Message-Id: <5b5509f1-9713-f1bc-cb33-18ebdb1cb8c5@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807030159 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2018 08:29 PM, Linus Torvalds wrote: > On Mon, Jul 2, 2018 at 6:03 AM David Miller wrote: >> >> are available in the Git repository at: >> >> gitolite@ra.kernel.org:/pub/scm/linux/kernel/git/davem/net.git > > So the af_smc poll fixes clashed with the revert of the commit that > caused those fixed to be done in the first place. > > See the changes to net/smc/af_smc.c in my commit > > a11e1d432b51 ("Revert changes to convert to ->poll_mask() and aio > IOCB_CMD_POLL") > > vs Ursula's > > 24ac3a08e658 ("net/smc: rebuild nonblocking connect") > > I (briefly) considered just dropping Ursula's changes entirely, but > they looked like a nice cleanup on their own, so what I did instead > was to try to fix up my revert instead. > > That involved removing the release_sock/lock_sock pair around the > ->poll() call, and removing the special "sock_poll_wait()" that got > re-introduced by my revert, but that Ursula's changes seem to obviate. > > However, while I can look at the code and say "my merge makes sense to > me", (a) I can't test it, (b) I don't actually know the rules for SMC > sockets in the first place, and (c) I may be just incompetent. > > So Ursula - mind checking and testing the end result? I _think_ it's > fine and the merge looked pretty obvious, but maybe af_smc got broken > again. > Thanks Linus for your revert. I run a test, and found it is almost fine. Just these 2 lines are missing: --- net/smc/af_smc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index e017b6a4452b..e7d7ff87499e 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@ -1345,6 +1345,8 @@ static __poll_t smc_poll(struct file *file, struct socket *sock, if (sk->sk_err) mask |= EPOLLERR; } else { + if (sk->sk_state != SMC_CLOSED) + sock_poll_wait(file, sk_sleep(sk), wait); if (sk->sk_err) mask |= EPOLLERR; if ((sk->sk_shutdown == SHUTDOWN_MASK) || -- > [ It's still going through by basic build tests, so I haven't pushed > out my merge yet, but it should be in the usual places in a short > while ] > > Thanks, > > Linus > Regards, Ursula