Message ID | 20181205202433.95823-2-snitzer@redhat.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 13BEA13BB for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 5 Dec 2018 20:26:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 046112E586 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 5 Dec 2018 20:26:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED4522E3DF; Wed, 5 Dec 2018 20:26:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8FED62E433 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 5 Dec 2018 20:26:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 92C493083394; Wed, 5 Dec 2018 20:26:09 +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 6A0D35DA9B; Wed, 5 Dec 2018 20:26:09 +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 369AD181B9E9; Wed, 5 Dec 2018 20:26:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wB5KOf9G001041 for <dm-devel@listman.util.phx.redhat.com>; Wed, 5 Dec 2018 15:24:41 -0500 Received: by smtp.corp.redhat.com (Postfix) id 407971974C; Wed, 5 Dec 2018 20:24:41 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx11.extmail.prod.ext.phx2.redhat.com [10.5.110.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38326194AF; Wed, 5 Dec 2018 20:24:39 +0000 (UTC) Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 479DB308424A; Wed, 5 Dec 2018 20:24:38 +0000 (UTC) Received: by mail-qk1-f195.google.com with SMTP id w204so12688006qka.2; Wed, 05 Dec 2018 12:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=IPsDdKQlx38t2S9AR2ga4G4Dr1vJK59J1pvT/EwZZ1I=; b=iy4GUKPDxuT1gV7T2f4F2eL93pW0UkFoVY3DrQQE0WXJV2GBk6VAQ52lHMCtyLMk4C Xcw2mqDdVEbnHsF2ZjBpvRTq3ESbWET6kN7jG3RAnk308kwWIdzKN+mtnIkGx3XoV4RB swhGvozoUoipnoJqFY5/nlc1hUg/Oqt2jnkWobE7NIHH0qq1Bkd45UUsBZhAezUgoD8x Jrm8jyWabmAn65iJHTUxROVpNGAV1trTKotcFlHhfJAGjWynIw9/DYvsEPeJnAQ4dNHl e9sZWGnfRfuG5x8liyrpXDRJLpLCSTPmySLxXD6ihbN5PFxUUB2BybuPfbloN/lTlHWJ fEVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=IPsDdKQlx38t2S9AR2ga4G4Dr1vJK59J1pvT/EwZZ1I=; b=tfhhXV2yUzKotn/9m2/gCMuJ6BrbQJ+XEYPjQwXHR9ZvMbKDrSWaoXPd/kkqCj2Yby gj/Lvaonue+bFIKs1zPQBEDk1/o99O6k3AUZ5uH1a4gBqTvRSAwXHxdEolZxScteY7jR sB0lVgfeyLtGK4jvhBcsPp+1XAVAzWbOdaTTtZX8RhUqJw07e4wrZSgWI0t0AQyGne+4 1gJNtYiPlvoF9utxdsaHiqa0g5EvX430muyhtUVsgPpYYjwi22fCQCysT1Pu2ipc3wzB rKimRqXjW5H8PgJUHhx6gA38I10DNJ72qOPgIEnEjqXUBfpbgiv+xbCjyl+manbuCzFC 3VGg== X-Gm-Message-State: AA+aEWZn7N0g1MiifTQXHm3lw/O8UhSPm5+Q2sZQFI5J+stETDWJj4lp r6zFDBzp/v/0Bzn8DY+0NDk= X-Google-Smtp-Source: AFSGD/V5F0whJ55efXgBHr1ccvJU7JBgy0XfZh/SUfic2blW8KYM5VFVP1mLlbKa0hLLdv/uQnSP8Q== X-Received: by 2002:a37:3008:: with SMTP id w8mr23660228qkw.75.1544041477424; Wed, 05 Dec 2018 12:24:37 -0800 (PST) Received: from localhost (pool-68-160-144-192.bstnma.fios.verizon.net. [68.160.144.192]) by smtp.gmail.com with ESMTPSA id z23sm18445488qkg.50.2018.12.05.12.24.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 12:24:36 -0800 (PST) From: Mike Snitzer <snitzer@redhat.com> To: Jens Axboe <axboe@kernel.dk> Date: Wed, 5 Dec 2018 15:24:27 -0500 Message-Id: <20181205202433.95823-2-snitzer@redhat.com> In-Reply-To: <20181205202433.95823-1-snitzer@redhat.com> References: <20181205202433.95823-1-snitzer@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 05 Dec 2018 20:24:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 05 Dec 2018 20:24:38 +0000 (UTC) for IP:'209.85.222.195' DOMAIN:'mail-qk1-f195.google.com' HELO:'mail-qk1-f195.google.com' FROM:'snitzer@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.091 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.222.195 mail-qk1-f195.google.com 209.85.222.195 mail-qk1-f195.google.com <snitzer@gmail.com> X-RedHat-Possible-Forgery: <snitzer@gmail.com> Mike Snitzer <snitzer@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.110.40 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: dm-devel@redhat.com Cc: linux-block@vger.kernel.org, dm-devel@redhat.com, Mikulas Patocka <mpatocka@redhat.com> Subject: [dm-devel] [PATCH v3 1/7] dm: dont rewrite dm_disk(md)->part0.in_flight X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 05 Dec 2018 20:26:10 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
per-cpu in_flight counters for bio-based drivers
|
expand
|
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index a733e4c920af..a8ae7931bce7 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -663,8 +663,7 @@ static void start_io_acct(struct dm_io *io) generic_start_io_acct(md->queue, bio_op(bio), bio_sectors(bio), &dm_disk(md)->part0); - atomic_set(&dm_disk(md)->part0.in_flight[rw], - atomic_inc_return(&md->pending[rw])); + atomic_inc(&md->pending[rw]); if (unlikely(dm_stats_used(&md->stats))) dm_stats_account_io(&md->stats, bio_data_dir(bio), @@ -693,7 +692,6 @@ static void end_io_acct(struct dm_io *io) * a flush. */ pending = atomic_dec_return(&md->pending[rw]); - atomic_set(&dm_disk(md)->part0.in_flight[rw], pending); pending += atomic_read(&md->pending[rw^0x1]); /* nudge anyone waiting on suspend queue */