Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp849672ybe; Fri, 6 Sep 2019 08:13:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3xDVSEd5riOhSIXzBsY5ohJ+4OXDt3NoqqBruSRrOV08VDUXcy1bhWLVP4agk5OsdvgRJ X-Received: by 2002:a17:90a:d598:: with SMTP id v24mr10439015pju.8.1567782784693; Fri, 06 Sep 2019 08:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567782784; cv=none; d=google.com; s=arc-20160816; b=CH5tFkcCRnM7oa8XI4VTXQBzqAGw4uO8fEs/yIGOSwMmKruhrSeK1aGUG8VU9F4NOd vu7PV/oIfRee9BUjjmGifpV/Oy/QbY0+rqoAl4upEbPb1mWtMGAUa9Lyd8oRcZVMnqcq vXO3nE+8EhVifYBayH9yf4cEpyCvO0ILMubSykWIOp79AVd9D64+gn+Pe6deman5tHvS 5IJiVURyeN9BgcWFCv/OtzdXf1M93MBTi5fb55XVprkIX3KDPgg8xmTBJdIShGNs+SWr 3ZTWN/JrkO6V17PVL8wcG9WnPuu/Az58IqMLAYe10BwKTyHU5KI2hF0A2MkaKwdf0ppx wOxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=f4lqVL9E8teUhvToTgEeuMgi3bTyCtYt4jpvCxfm54Q=; b=fowrgmagpbD5VQ5GfT4kJtfMKq2J67MdwPiZZW/pGiuCeeAIURZSq0djOL3wM9h/ST R3WbFTHWlPy7pP1KbgylzCYihXGNhMiuwc7y4O2N52yzDgFKEvaJ9ObOInW7Zd6lH3CR IMu4dsz/o6BTIF2XDKH4Out6GkEbT0SZFCTgxG6VCwSlAzYAcoRghDxrBUJKPt/a+FDM 29kHvoaVxdoqncbH8ge2G664pB8JNAX459E+Nm8j/VJ9zR11931JPLWKQcmTxnTaAIqg VtSJL2G7jSnIHeYr21DcHy7MFg4fazoaAi5tp2qwDVuQmUcqFTsEv2Rs74QyGtb5BpeK MTWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=M6kMLhhr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si5095550pjn.73.2019.09.06.08.12.48; Fri, 06 Sep 2019 08:13:04 -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; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=M6kMLhhr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391203AbfIFLwy (ORCPT + 99 others); Fri, 6 Sep 2019 07:52:54 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:40310 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbfIFLwx (ORCPT ); Fri, 6 Sep 2019 07:52:53 -0400 Received: by mail-io1-f67.google.com with SMTP id h144so12022970iof.7 for ; Fri, 06 Sep 2019 04:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f4lqVL9E8teUhvToTgEeuMgi3bTyCtYt4jpvCxfm54Q=; b=M6kMLhhrR1rSwxoyoRq92O56PaUv4DjhHtEi23Zna8X3y6GiVStVcgzJOPeB9P6X1d DdVtzL1OUc3LB71I/dqAOxlGGmrNQpZB504ocPjGN3JGQcl6Ax9TqTmWb1ESVc1DoXwK B46n8m+4HwmtG0XpBl9stwF9MkxMcUuN6wozQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f4lqVL9E8teUhvToTgEeuMgi3bTyCtYt4jpvCxfm54Q=; b=tWjTir8Xd5uZgCxw7Cjode+vgxkGI61RZiuODVVhbiYSVl51Lq5qY7q33LwaPdRLLh yi9fIxbU5uLDo508qCIpT+7X5dgVYpUWpWpNDdPoVFKu3CQc3XFwHJVmX45NIKbyXWwI zunoEF2hNB5ceUVHi7c2oCU97gx7eliDl/xHXJ5cppkuwFuoxOqdefjsmwpgDZ6rKg/5 qMBmNQIq/fYqvKMt5XN6UCLHlmRcsuR2Zf0rBwUPOFikUxN24wk8OGrWE/FyVPcXTuof uhwFA4nsrQckg4cxezy1D0Il3EasU3AuyFxbVLovMWyMlFO6hAOCk1JC6IPi+kbwBdWH rP6w== X-Gm-Message-State: APjAAAUKo6xh11BAmuOZj2pmsCv1qWyebrnuk/J8/2rZXJJKY+BidNhj LlA1PsF5C/BPhDZFblsdOotTwW2bzJeIa/ptQN94PQ== X-Received: by 2002:a5e:d70b:: with SMTP id v11mr701415iom.252.1567770772377; Fri, 06 Sep 2019 04:52:52 -0700 (PDT) MIME-Version: 1.0 References: <20190905194859.16219-1-vgoyal@redhat.com> <20190906103613.GH5900@stefanha-x1.localdomain> In-Reply-To: <20190906103613.GH5900@stefanha-x1.localdomain> From: Miklos Szeredi Date: Fri, 6 Sep 2019 13:52:41 +0200 Message-ID: Subject: Re: [PATCH 00/18] virtiofs: Fix various races and cleanups round 1 To: Stefan Hajnoczi Cc: Vivek Goyal , linux-fsdevel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, "Dr. David Alan Gilbert" , "Michael S. Tsirkin" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 6, 2019 at 12:36 PM Stefan Hajnoczi wrote: > > On Fri, Sep 06, 2019 at 10:15:14AM +0200, Miklos Szeredi wrote: > > On Thu, Sep 5, 2019 at 9:49 PM Vivek Goyal wrote: > > > > > > Hi, > > > > > > Michael Tsirkin pointed out issues w.r.t various locking related TODO > > > items and races w.r.t device removal. > > > > > > In this first round of cleanups, I have taken care of most pressing > > > issues. > > > > > > These patches apply on top of following. > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virtiofs-v4 > > > > > > I have tested these patches with mount/umount and device removal using > > > qemu monitor. For example. > > > > Is device removal mandatory? Can't this be made a non-removable > > device? Is there a good reason why removing the virtio-fs device > > makes sense? > > Hot plugging and unplugging virtio PCI adapters is common. I'd very > much like removal to work from the beginning. Can you give an example use case? Thanks, Miklos