From patchwork Mon Jan 10 07:51:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 12708314 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D41BEC433F5 for ; Mon, 10 Jan 2022 07:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641801447; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ww18KCuJaYSuwv32iT6qfyxNaHPqhxdNWxeqXip1GS8=; b=LFuEWM/ztkoKTqi2oHikBE4SgLO0q/JTBevUxVvfYunGrQkqHymTKn+yhAQkP8ev0sYI+x mxBgjzJ+ukZIn7qHQrz8mjzS+tS6g3GAW2iIMy56uGQYWSq/QxIgEGzy4kwRWoSHsqrQuM qDgifqo6hfYr4HGMP9pWq4n2A2iEo/M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-570-VPwlkouyO-2IlmGVNVeCnw-1; Mon, 10 Jan 2022 02:57:24 -0500 X-MC-Unique: VPwlkouyO-2IlmGVNVeCnw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7338481CCB8; Mon, 10 Jan 2022 07:57:20 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 83456104B4C6; Mon, 10 Jan 2022 07:57:19 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B913C1809CB8; Mon, 10 Jan 2022 07:57:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20A7qMRm015265 for ; Mon, 10 Jan 2022 02:52:22 -0500 Received: by smtp.corp.redhat.com (Postfix) id 65BAA78C20; Mon, 10 Jan 2022 07:52:22 +0000 (UTC) Received: from localhost (ovpn-8-24.pek2.redhat.com [10.72.8.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 51C3B7B9D7; Mon, 10 Jan 2022 07:51:56 +0000 (UTC) From: Ming Lei To: Jens Axboe , Mike Snitzer Date: Mon, 10 Jan 2022 15:51:39 +0800 Message-Id: <20220110075141.389532-1-ming.lei@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com Cc: Ming Lei , linux-block@vger.kernel.org, dm-devel@redhat.com, lining , Tejun Heo , Chunguang Xu Subject: [dm-devel] [PATCH 0/2] block/dm: add resubmit_bio_noacct for fixing iops throttling X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Hello Guys, Commit 4f1e9630afe6 ("blk-throtl: optimize IOPS throttle for large IO scenarios") only fixes iops throttle for blk-mq drivers. This patchset adds API of resubmit_bio_noacct so that we can use it for fixing the same issue on bio based drivers. Meantime fix the issue on device mapper via the added API, and the issue is reported by lining. Ming Lei (2): block: add resubmit_bio_noacct() dm: use resubmit_bio_noacct to submit split bio block/blk-core.c | 12 ++++++++++++ block/blk-merge.c | 4 +--- drivers/md/dm.c | 2 +- include/linux/blkdev.h | 1 + 4 files changed, 15 insertions(+), 4 deletions(-) Cc: lining Cc: Tejun Heo Cc: Chunguang Xu