From patchwork Thu May 13 12:00:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 437286 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp264585jao; Thu, 13 May 2021 05:05:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyeofpi1zoET5vzZPqKhUV27RVTO/avnW3u1n21xqGdMH2mI9jUVaeHav+wUSlp8HrKnQJ X-Received: by 2002:a05:6402:8da:: with SMTP id d26mr50093980edz.161.1620907526568; Thu, 13 May 2021 05:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620907526; cv=none; d=google.com; s=arc-20160816; b=DyFk3rg/9IMrWtxGQCeQ+/g3ICQv5dtQ8ULZqJx62DQxY4xGTOhIbAlqbX35BGCjwf 9s7eaJCrMXqwr81ihPrIiOAcygJGLhJIWnaPssMDM/A3rZ9oDy4alWYJrBew6iEhPj1O Wk5TZcY5pPjOav+iQxWpT6J1trarTvyvnzqRZvvSRXRNf60EKJ3Z35LebCje1K9dxJ8R rQk45Lqz0XxyxdTeQ26KtLrCXSAeapjDj2Y8/a6mYIK3lGOgbtqHhLKdTKHTbTgtQeLJ q2cVTZzV2eYrXaKTctHWuKW1bvFg7hKzSGwIJrVRsbRUU2dtCDHK4a9vQpnmwKgkAqUT UUjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=/d5RwDaYUDpqomZMqsirwa2a0oksqf96k/EHgtOOKu8=; b=NrxseHXVdojFl25Leamwn6BzKvUMzwbZxn9xZ9EfIpsTdh9la+tuZesmcBJR6AJPtN SMJynG+wWt5n1G8V+jwJr2Y8ZktFkIKlxf7AiaxCbrkuJtRJoPmi8PkujTUtpzWj6dBl VeT+C46LgpYsRg5Erdl/8weB7wt+LbuKXYZqi2nw7KBnXQ0wUd8SP58KwrKznJ32o2Vd SbcRyYqVQRKljxj1o9ESAgMU4GjCd+OO/q2gbulifs7i/3qWtVV58gaR9QOCwV8Iv1PY uqe9dmP80N4nzwx0LUPqjgiKHWT7VhtuzS+pIC7w0q3n/fhbRGMrQGfsf+sfIG4AbxXg 0zNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si2998088edv.428.2021.05.13.05.05.26 for ; Thu, 13 May 2021 05:05:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233392AbhEMMGe (ORCPT ); Thu, 13 May 2021 08:06:34 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3747 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231609AbhEMMGb (ORCPT ); Thu, 13 May 2021 08:06:31 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FgqyX3Xc4zqTdF; Thu, 13 May 2021 20:01:56 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 13 May 2021 20:05:12 +0800 From: John Garry To: CC: , , , , , , , , John Garry Subject: [PATCH v3 0/2] blk-mq: Request queue-wide tags for shared sbitmap Date: Thu, 13 May 2021 20:00:56 +0800 Message-ID: <1620907258-30910-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This is v3 of patch/series. I have spun off a new patch for tag allocation refactoring. Details are in commit messages. Changes since v2: - Spin off separate patch for tag allocation refactoring - Combine sched shared sbitmap code into a single function Changes since v1: - Embed sbitmaps in request_queue struct - Relocate IO sched functions to blk-mq-sched.c - Fix error path code Please retest, thanks! For some reason I could not recreate the original issue, but I am using qemu... John Garry (2): blk-mq: Some tag allocation code refactoring blk-mq: Use request queue-wide tags for tagset-wide sbitmap block/blk-mq-sched.c | 67 ++++++++++++++++++++++++++++++++++-------- block/blk-mq-sched.h | 2 ++ block/blk-mq-tag.c | 65 +++++++++++++++++++++++----------------- block/blk-mq-tag.h | 9 ++++-- block/blk-mq.c | 15 ++++++++-- include/linux/blkdev.h | 4 +++ 6 files changed, 116 insertions(+), 46 deletions(-) -- 2.26.2