From patchwork Tue Jun 14 05:15:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongji Xie X-Patchwork-Id: 1643116 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bytedance-com.20210112.gappssmtp.com header.i=@bytedance-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=x8+Ha8Zd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LMcGR0GxTz9sGD for ; Tue, 14 Jun 2022 15:20:47 +1000 (AEST) Received: from localhost ([::1]:32780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0yyq-0004m8-8T for incoming@patchwork.ozlabs.org; Tue, 14 Jun 2022 01:20:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0yvF-0000h7-OS for qemu-devel@nongnu.org; Tue, 14 Jun 2022 01:17:01 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:41511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0yvA-0000zC-QN for qemu-devel@nongnu.org; Tue, 14 Jun 2022 01:16:58 -0400 Received: by mail-pf1-x42e.google.com with SMTP id i64so7618764pfc.8 for ; Mon, 13 Jun 2022 22:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4KGR369QU1+tLcugq19QCBCNZU/suug/t00sj2c0vDA=; b=x8+Ha8ZdDkvHZPs4/YpI0dkjPrhlnzm8JmFyWAfviaZJG8TMm4CPgplFDYehF2LDpK UI5EemnsZiwWYbloFt2aX+V1JPH+t6LEoKEMcR07bBS9JUAPxA7N89hf5gxPTi2Y1Aom t2CddBRd9xkfygLAbRQWbOPO6AwnvVD91FoM+n2KsfUagxyR1El0KZSLaOcWAkbwH+R4 MRRDzDTm7s5bzjSQoENF00AC3nBEte444U5IGse0T9KFk7KN8zW3GwfPFNPZYDB59Wha IEgpeWnbiLlgattDjmUFR6xRDdLrEZb5zUb6Z+YAaZ1mFNFNmeCqNc+rFdcqBAw0vPog WTVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4KGR369QU1+tLcugq19QCBCNZU/suug/t00sj2c0vDA=; b=iFYVTWnHcY4Q53bye2QgoQni6xIY2hqiSCFdipGj6TRFTWtSxLsQ/7dVWkRxjNSoat iBkbjJXFq2I9UlbV8lA+Nbrm9NI4iH/ybbPaE3mK6EyT5afAsjRNbIqzMLx1rMgYZ1m0 oqbp+4BhsQTf0YSryin1pr7dX8GJO/HTcvc/N3U58qYwFlfhKmqmkIdVJOdDk9nzdSDg xqU7KfOs/hcVr8o9jGiZznwOBSvh3rwP7LwdYtesWXzgmG77JxB+U+e+VRyZVTQSjw3H KBI74naGZvkgc5Hk0mW37myUSikZDZDgEfUfulw1UIzqXWRI45VISzMzHWbe6L7D2E7N vtzg== X-Gm-Message-State: AOAM531P2zc4pOxCRD7J1EluPZC4iFydrZFJvzmeRryEPr44reQxGbAd PWIDVnjAj0+eM44e5ZrldpSc X-Google-Smtp-Source: ABdhPJy6AUlNX93kZyltpJBqEBw1FJo9TKyJJHrNGToi+Wz7XFqgA/aBWCntt+GQbGR7ouhdmC/Jag== X-Received: by 2002:a63:6cc8:0:b0:3fa:387b:3991 with SMTP id h191-20020a636cc8000000b003fa387b3991mr2897112pgc.19.1655183814897; Mon, 13 Jun 2022 22:16:54 -0700 (PDT) Received: from localhost ([139.177.225.237]) by smtp.gmail.com with ESMTPSA id 19-20020a170902e9d300b001677841e9c2sm6111467plk.119.2022.06.13.22.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 22:16:54 -0700 (PDT) From: Xie Yongji To: kwolf@redhat.com, stefanha@redhat.com Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v2 0/6] Some fixes and improvements for vduse-blk Date: Tue, 14 Jun 2022 13:15:26 +0800 Message-Id: <20220614051532.92-1-xieyongji@bytedance.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=xieyongji@bytedance.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This series includes few fixes and improvements for the vduse-blk export. Patch 1 fixes some compile errors with clang in 32-bit machine. Patch 2 fixes resources leak when vduse fd is zero. Patch 3, 4 fixes two bugs which could be triggered by force deleting a vduse-blk export with high I/O loads. Patch 5, 6 adds two new options for vduse-blk export. V1 to V2: - Add a patch to fix some compile errors with clang Xie Yongji (6): libvduse: Fix some compile errors with clang libvduse: Fix resources leak in vduse_dev_destroy() vduse-blk: Don't unlink the reconnect file if device exists vduse-blk: Don't delete the export until all inflight I/Os completed vduse-blk: Add serial option vduse-blk: Add name option block/export/vduse-blk.c | 53 ++++++++++++++++++++++------ block/export/vhost-user-blk-server.c | 4 ++- block/export/virtio-blk-handler.h | 2 +- docs/tools/qemu-storage-daemon.rst | 5 +-- qapi/block-export.json | 11 +++--- storage-daemon/qemu-storage-daemon.c | 9 ++--- subprojects/libvduse/libvduse.c | 27 +++----------- 7 files changed, 67 insertions(+), 44 deletions(-)