Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3202805imu; Mon, 17 Dec 2018 15:25:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/XUWKkrA4C2SrJGGI/P5HPmw4vncqtImfNR9TRGz2G2JyIFn/zVlj0ONe4Pc4caBU4Jnzwb X-Received: by 2002:a62:5182:: with SMTP id f124mr14661293pfb.238.1545089107796; Mon, 17 Dec 2018 15:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545089107; cv=none; d=google.com; s=arc-20160816; b=NVsjG5r108+unPImeHxs5zSlMt4ZLnNCBMz54Fvoyc78SDFF5B79+9UutX04LoS1G4 5SmeOWMI46JbcI7F89sfavw1cgyyq2ait2zRpgfylUxPtcdXwo5C+JszIP1WjIV0azkM Nm/A+kv4YP1+XGTIlO4ohcVuCvnbroEhJenPApUPcOGXVfPPAnAvPd63eXKb8PVmb7D2 Vb82x2m2jUab/WT9AtUIP2yQ0IG2W5uR9eT1Q6jA2uYEpcQoUhrqz+8kQ5QJYkPDbEuS Gj4b/lyynUEGVW5NGjhwWgD+cHeFsxNNq92FjVPxXTAdRm2pIEOQvsvhSjy1wXEfeZSQ i8ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=2zzpODZ6KmJV4BHubr5YBpf4w20/yVSUBEnPmY/rsvs=; b=nZRX1c5ux8QuMdk6l/Trz8zMvAcom0rhWQrpg8L9lI7h8JrRyXbY2xu9n3zlYYohaP 4EOkQ1oClpc02dJM4uH7wroTx69JySxZcqtGirJixB11/XhEfZFDqi91J3exieFtHp/u t5ZxFFKqfmNm1xF85vukAkx4tBgKjOCvf921oM1r9wf+ZArr4LEE2rdPnQTdF9JkK8op 8bA69Fau4DLD6MzJdaSweQfzPdMcDTx4dK+11fark7Hq+TMAzHcT6OdUbRDX/BRThJX8 88bNQEkFp8FbFcpn/SvTdEA7wVTv9Cor5NqAqkpVMMro3uhj5/hhVsp0CeJKcIGrbvxf nrew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CaFJhUVn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si12235621pfa.99.2018.12.17.15.24.53; Mon, 17 Dec 2018 15:25:07 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CaFJhUVn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730635AbeLQWPA (ORCPT + 99 others); Mon, 17 Dec 2018 17:15:00 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33770 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbeLQWO7 (ORCPT ); Mon, 17 Dec 2018 17:14:59 -0500 Received: by mail-lj1-f195.google.com with SMTP id v1-v6so12465831ljd.0; Mon, 17 Dec 2018 14:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2zzpODZ6KmJV4BHubr5YBpf4w20/yVSUBEnPmY/rsvs=; b=CaFJhUVnJ+7U54OlM6Ml9qkFC4ghRB6zAYaTGzAxu+Ispt9ejR0ZA/c2P78hpRzQgW baP0M23f2hQuyRJlW42A3BFljPixp4kwb22zQY26ziJyfvoEPnQotsT1H0zHBd7r0OP3 P3/LGtm7hKPVQ1FKEFpylEpyFkpKNQ+Ty7vhvumx/2gM6u7iPk19s5JY5LDE193w+vVf eiyX/2RwxuNvIB05Ce5v0rVmoYy4E0fB85OSdsK5zGz+MQMxT7FAf2Rtk2lHTc2W2p1h iuA1HTvyoRHHRVpMUH8D/6KOxgvSrGIGNg4p8O/r6gQC2vp1KRB05nEvUgF+PIuYp+Bj 7Tpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=2zzpODZ6KmJV4BHubr5YBpf4w20/yVSUBEnPmY/rsvs=; b=PG6Nh1uIC13Ct+hHt6Ab/yYgCTnE3ZW6ybJ4k8lY+XdJ/Zt2GRhDTJFwlKN1cO+EO5 7hzGN1PpkEz8tTNsnUziB6aU9tRPB16TkNE7KEmgpqIkjNdjrXx7UkJB8q/FezNIRdAc 9Eeatwa1vzQjfP1T0dBzOH7pGleTmh3IgG7z/Pec6YCNWPpdn6D2i9QGJoZ7I5g60QX8 Gcu8q38dY3Od3257r/5s8TNrXRbSAB1JaARIef+1aYKckU0ReyT3jYjS5I16Hpqz/ojI RplRY561hEV0m80BbVvYSFVrxdt7wLI0S7Le/beThPIYQinBAb8CZsff+QLdnI/ZAeiE s37g== X-Gm-Message-State: AA+aEWYgDr3TW3WTeMWPTfXY0RDJqEBkZ3b+h5rNFQA863hSLADcEK/k 1Ygx2OZcsUP41PSE5DhGh6WAi+Xq/IYJcw== X-Received: by 2002:a2e:8446:: with SMTP id u6-v6mr9724985ljh.74.1545084895616; Mon, 17 Dec 2018 14:14:55 -0800 (PST) Received: from [192.168.0.21] (87-50-154-159-cable.dk.customer.tdc.net. [87.50.154.159]) by smtp.gmail.com with ESMTPSA id e14-v6sm2779076ljl.43.2018.12.17.14.14.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 14:14:55 -0800 (PST) Subject: Re: [PATCH 1/3] 9p/net: implement asynchronous rpc To: Dominique Martinet Cc: v9fs-developer@lists.sourceforge.net, Dominique Martinet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Van Hensbergen , Latchesar Ionkov , Dmitry Vyukov References: <1544532108-21689-1-git-send-email-asmadeus@codewreck.org> <0da7d896-0d67-46f6-83f9-b346eba991a9@gmail.com> <20181217110111.GB17466@nautica> From: Tomas Bortoli Openpgp: preference=signencrypt Autocrypt: addr=tomasbortoli@gmail.com; prefer-encrypt=mutual; keydata= mQINBFpCTZMBEADNZ1+Ibh0Z4pgGRcd1aOUMbe/YfHktmajjcoTnKmZZunjoUVAl8waeLITd BC2c8i1wHzHcnthrmb1izs5XlG6PZnl8n5tjysSNbwggzS1NcEK1qgn5VjNlHQ5aRMUwCC51 kicBiNmlQk2UuzzWwdheRGnaf+O1MNhC0GBeEDKQAL5obOU92pzflv6wWNACr+lHxdnpyies mOnRMjH16NjuTkrGbEmJe+MKp0qbjvR3R/dmFC1wczniRMQmV5w3MZ/N9wRappE+Atc1fOM+ wP7AWNuPvrKg4bN5uqKZLDFH7OFpxvjgVdWM40n0cQfqElWY9as+228Sltdd1XyHtUWRF2VW O1l5L0kX0+7+B5k/fpLhXqD3Z7DK7wRXpXmY59pofk7aFdcN97ZK+r6R7mqrwX4W9IpsPhkT kUyg3/Dx/khBZlJKFoUP325/hoH684bSiPEBroel9alB7gTq2ueoFwy6R3q5CMUw3D+CZWHA 3xllu46TRQ/Vt2g0cIHQNPoye2OWYFJ6kSEvaLpymjNDJ9ph2EuHegonDfOaYSq34ic2BcdB JkC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THqk7K38AdSdM2li/I/zegeblInnLi08Gq6mT6RkD6wV9HE5U3 EIU0rDPyJo54MW39wGjfC2+PM5I0xebbxtnuTewRchVVfm7UWgLAy11pV3xM4wMSJOuqVMOz jYpWKYxDTpvsZ0ginUUY993Gb8k/CxjABEMUGVHhQPZ0OzjHIKS6cTzN6ue8bB+CGOLCaQp1 C0NRT5Tn9zpLxtf5nBExFd/zVENY5vAV2ZbKQdemO54O7j6B9DSgVRrm83GCZxbL4d+qTYBF 3tSCWw/6SG1F3q9gR9QrSC2YRjCmhijUVEh6FhZwB58TNZ1sEEttrps8TDa5tUd9 Message-ID: <1bcb0d99-fc35-3390-e751-5c4ad623e418@gmail.com> Date: Mon, 17 Dec 2018 23:14:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181217110111.GB17466@nautica> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/17/18 12:01 PM, Dominique Martinet wrote: > Tomas Bortoli wrote on Mon, Dec 17, 2018: >> sorry for the delay, I've been quite busy these days. > > No problem. > >> The patches looks good to me and should indeed speed up the code a bit. >> I quickly tested them against Syzkaller tuned for the 9p subsystem and >> everything seems fine. > > Thanks, can I add your Reviewed-by on all three? > Sure, FWIW. >> And by the way, which refcount races? > > There's a problem with trans_fd read_work and cancelled callback; I'm > not so sure about refcount but we can definitely get double list_del > as we're not checking the status. I think when we incorrectly remove > from the list we also mismanage the refcount, but honestly need to > test.. > Yeah, definitely it needs to check the status. Btw, if a double list_del happens the kernel should crash.