Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp258928rdb; Mon, 22 Jan 2024 03:23:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+M4WamqMX5LFYBQIaayMftOA5SqgT3419fO5Q+tODckCC/+2IhJ38xTcPzjFLmLmMxBLm X-Received: by 2002:a05:6a20:1730:b0:19a:494a:c519 with SMTP id bn48-20020a056a20173000b0019a494ac519mr1332002pzb.38.1705922589102; Mon, 22 Jan 2024 03:23:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705922589; cv=pass; d=google.com; s=arc-20160816; b=YEbzAmnW4MHbEoG/Cz8vSvYccrEkzPSRfY3VsyGWt9hP2lafD4V7jgi2eTLJ74ZYdp JpYrhp9VwF6AZPxb0Fl9ils01FaJ0aVXLJDUoTynuX0FGACo7bNBYnG8wAGYGKvfjWcd NyVCAcgiCEqezjKFnIJ0cYXLu0H5rY5JwbA0lkFyi3bEMRFcnrO6LndU0krNPLuCUbBd xFidlLewgABKoeQ+wlg3zXnVXtHJXAxngpZVeKX/vqo3OWf7v9Knju7O3uaN1ZuK9kUs Rp6V4TF7Z2mZe84jVE966LYfIrDk5rsKXjkzF0PsaGmE9/77h/6Ih8yZBhAiwwCI1QEI XhkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=h63K+cd0Hs0dkwB9zWannv1zhy/b7/TUydGkdAMrCVg=; fh=SAsS2eQuUitsPqkEZea+UWjJ5uX+kI9xrlYNvSAAzvc=; b=qrajnp9oub83nHw6gDw/j01pD+UPynQrYQXIDviCvIugBS2lKk/P5di67cCqjNvPIP FSKIbZhSI/BOs4v9f6Xn9h84K7Mz7tQ2wZOqnfpxurrSfXqi2A525xLWrdsKXQF17nyQ ZyX0xnG4f9KHVN0trovuUY7SbwdhqQhFNI98ET7QCJ0fNr5hp0yzgs7a+LrTV9+wakjM KRl6d3QTR+rZoqdAss0GU3Lh4UEzIF0IVn6k1K+AYB/wmfj3W66e9lXv2mxRz7ZAIWTx rOCqMgJ2Ma/feyX8dtSTB5fdErWaDIGTJEboW1KCTG5jVa046qUUTtYFTxwmm2xmjb9v 5AeQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-32866-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32866-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id br16-20020a17090b0f1000b0028caafee648si7892652pjb.77.2024.01.22.03.23.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 03:23:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32866-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-32866-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32866-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2AAD328CC88 for ; Mon, 22 Jan 2024 11:21:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9688A3D384; Mon, 22 Jan 2024 11:08:10 +0000 (UTC) Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F2833D0C9 for ; Mon, 22 Jan 2024 11:08:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705921690; cv=none; b=Ins1YppuKloIvlsvqk3En/xvNxfZp1S/3jxAc8afnLcdRjY6kVkySLwnYjVg8qvlbCWNqcObqZkDAdKmGg153LENKkbRkEadYe8kRPNvwEw9HMlxRd99zGOkNFdH+gwo+KlhbwPjPU+Y9M0Y5AtfS6o0S3aNvN36sIrpYGzPYGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705921690; c=relaxed/simple; bh=AdjZHcaMxR0kQSJ1Jqm5S2agNx0u5TuuEJoLvTn+y2c=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=S9nuVe3ku98/59jq9e+HyPMZOeium/fLdO17uRAVns1L7cbhkwjwpUkfprx3xnsKuVkeBOt4xeZT4le139L9Sfm/CXwyM8/IZkfKNfRZbbaDuq/6S9t5AO3mCb3CkZim9O7bY1KQNcXB3x8GiXjvw5dqtMj8lztMglnq0aHQY1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 40MB7QJh062251; Mon, 22 Jan 2024 19:07:26 +0800 (+08) (envelope-from Yi.Sun@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4TJS13282yz2RcY8P; Mon, 22 Jan 2024 19:00:07 +0800 (CST) Received: from tj10379pcu.spreadtrum.com (10.5.32.15) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Mon, 22 Jan 2024 19:07:24 +0800 From: Yi Sun To: , , CC: , , , , , , , , , Subject: [PATCH 0/2] Fix requests loss during virtio-blk device suspend Date: Mon, 22 Jan 2024 19:07:20 +0800 Message-ID: <20240122110722.690223-1-yi.sun@unisoc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL:SHSQR01.spreadtrum.com 40MB7QJh062251 When a virtio-blk device performs a large number of IO operations and requires sleep at the same time, some requests may never be successfully processed. It must be ensured that no requests in virtqueues before deleting. The request becoming complete status means that the request has been removed from the virtqueue. Yi Sun (2): blk-mq: introduce blk_mq_tagset_wait_request_completed() virtio-blk: Ensure no requests in virtqueues before deleting vqs. block/blk-mq-tag.c | 29 +++++++++++++++++++++++++++++ drivers/block/virtio_blk.c | 6 ++++-- include/linux/blk-mq.h | 1 + 3 files changed, 34 insertions(+), 2 deletions(-) -- 2.25.1