[git pull] device mapper fix for 5.2-rc2
diff --git a/m b/m
index 891f525..ad52367 100644
--- a/m
+++ b/m
@@ -2,107 +2,75 @@
 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
 	aws-us-west-2-korg-lkml-1.web.codeaurora.org
 X-Spam-Level: 
-X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,
-	MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no
-	version=3.4.0
+X-Spam-Status: No, score=-12.5 required=3.0
+	tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,
+	MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham
+	autolearn_force=no version=3.4.0
 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99])
-	by smtp.lore.kernel.org (Postfix) with ESMTP id D2A64C072B5
-	for <linux-block@archiver.kernel.org>; Tue, 21 May 2019 22:52:19 +0000 (UTC)
+	by smtp.lore.kernel.org (Postfix) with ESMTP id 59135C072B5
+	for <linux-block@archiver.kernel.org>; Tue, 21 May 2019 23:38:49 +0000 (UTC)
 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
-	by mail.kernel.org (Postfix) with ESMTP id 9C8472173E
-	for <linux-block@archiver.kernel.org>; Tue, 21 May 2019 22:52:19 +0000 (UTC)
+	by mail.kernel.org (Postfix) with ESMTP id 28FC6217F9
+	for <linux-block@archiver.kernel.org>; Tue, 21 May 2019 23:38:49 +0000 (UTC)
 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
-        id S1726271AbfEUWwT (ORCPT <rfc822;linux-block@archiver.kernel.org>);
-        Tue, 21 May 2019 18:52:19 -0400
-Received: from outgoing-stata.csail.mit.edu ([128.30.2.210]:41586 "EHLO
-        outgoing-stata.csail.mit.edu" rhost-flags-OK-OK-OK-OK)
-        by vger.kernel.org with ESMTP id S1726218AbfEUWwS (ORCPT
-        <rfc822;linux-block@vger.kernel.org>);
-        Tue, 21 May 2019 18:52:18 -0400
-Received: from [4.30.142.84] (helo=srivatsab-a01.vmware.com)
-        by outgoing-stata.csail.mit.edu with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
-        (Exim 4.82)
-        (envelope-from <srivatsa@csail.mit.edu>)
-        id 1hTDbq-0003mv-2S; Tue, 21 May 2019 18:52:13 -0400
-Subject: Re: CFQ idling kills I/O performance on ext4 with blkio cgroup
- controller
-To:     Paolo Valente <paolo.valente@linaro.org>
-Cc:     linux-fsdevel@vger.kernel.org,
-        linux-block <linux-block@vger.kernel.org>,
-        linux-ext4@vger.kernel.org, cgroups@vger.kernel.org,
-        kernel list <linux-kernel@vger.kernel.org>,
-        Jens Axboe <axboe@kernel.dk>, Jan Kara <jack@suse.cz>,
-        jmoyer@redhat.com, Theodore Ts'o <tytso@mit.edu>,
-        amakhalov@vmware.com, anishs@vmware.com, srivatsab@vmware.com
-References: <8d72fcf7-bbb4-2965-1a06-e9fc177a8938@csail.mit.edu>
- <1812E450-14EF-4D5A-8F31-668499E13652@linaro.org>
- <46c6a4be-f567-3621-2e16-0e341762b828@csail.mit.edu>
- <07D11833-8285-49C2-943D-E4C1D23E8859@linaro.org>
- <A0DFE635-EFEC-4670-AD70-5D813E170BEE@linaro.org>
- <5B6570A2-541A-4CF8-98E0-979EA6E3717D@linaro.org>
- <2CB39B34-21EE-4A95-A073-8633CF2D187C@linaro.org>
- <FC24E25F-4578-454D-AE2B-8D8D352478D8@linaro.org>
-From:   "Srivatsa S. Bhat" <srivatsa@csail.mit.edu>
-Message-ID: <0e3fdf31-70d9-26eb-7b42-2795d4b03722@csail.mit.edu>
-Date:   Tue, 21 May 2019 15:51:46 -0700
-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
- Gecko/20100101 Thunderbird/60.6.1
+        id S1726017AbfEUXis (ORCPT <rfc822;linux-block@archiver.kernel.org>);
+        Tue, 21 May 2019 19:38:48 -0400
+Received: from mx1.redhat.com ([209.132.183.28]:48480 "EHLO mx1.redhat.com"
+        rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP
+        id S1725797AbfEUXis (ORCPT <rfc822;linux-block@vger.kernel.org>);
+        Tue, 21 May 2019 19:38:48 -0400
+Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
+        (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
+        (No client certificate requested)
+        by mx1.redhat.com (Postfix) with ESMTPS id 448803086258;
+        Tue, 21 May 2019 23:38:48 +0000 (UTC)
+Received: from localhost (unknown [10.18.25.174])
+        by smtp.corp.redhat.com (Postfix) with ESMTPS id EDFF660C78;
+        Tue, 21 May 2019 23:38:45 +0000 (UTC)
+Date:   Tue, 21 May 2019 19:38:45 -0400
+From:   Mike Snitzer <snitzer@redhat.com>
+To:     Linus Torvalds <torvalds@linux-foundation.org>
+Cc:     dm-devel@redhat.com, linux-block@vger.kernel.org,
+        Alasdair G Kergon <agk@redhat.com>,
+        Michael Lass <bevan@bi-co.net>
+Subject: [git pull] device mapper fix for 5.2-rc2
+Message-ID: <20190521233844.GA31426@redhat.com>
 MIME-Version: 1.0
-In-Reply-To: <FC24E25F-4578-454D-AE2B-8D8D352478D8@linaro.org>
-Content-Type: text/plain; charset=windows-1252
-Content-Language: en-US
-Content-Transfer-Encoding: 7bit
+Content-Type: text/plain; charset=us-ascii
+Content-Disposition: inline
+User-Agent: Mutt/1.5.21 (2010-09-15)
+X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
+X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 21 May 2019 23:38:48 +0000 (UTC)
 Sender: linux-block-owner@vger.kernel.org
 Precedence: bulk
 List-ID: <linux-block.vger.kernel.org>
 X-Mailing-List: linux-block@vger.kernel.org
 
-[ Resending this mail with a dropbox link to the traces (instead
-of a file attachment), since it didn't go through the last time. ]
+Hi Linus,
 
-On 5/21/19 10:38 AM, Paolo Valente wrote:
-> 
->> So, instead of only sending me a trace, could you please:
->> 1) apply this new patch on top of the one I attached in my previous email
->> 2) repeat your test and report results
-> 
-> One last thing (I swear!): as you can see from my script, I tested the
-> case low_latency=0 so far.  So please, for the moment, do your test
-> with low_latency=0.  You find the whole path to this parameter in,
-> e.g., my script.
-> 
-No problem! :) Thank you for sharing patches for me to test!
+The following changes since commit 8454fca4f53bbe5e0a71613192674c8ce5c52318:
 
-I have good news :) Your patch improves the throughput significantly
-when low_latency = 0.
+  dm: fix a couple brace coding style issues (2019-05-16 10:09:21 -0400)
 
-Without any patch:
+are available in the Git repository at:
 
-dd if=/dev/zero of=/root/test.img bs=512 count=10000 oflag=dsync
-10000+0 records in
-10000+0 records out
-5120000 bytes (5.1 MB, 4.9 MiB) copied, 58.0915 s, 88.1 kB/s
+  git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-5.2/dm-fix-1
 
+for you to fetch changes up to 51b86f9a8d1c4bb4e3862ee4b4c5f46072f7520d:
 
-With both patches applied:
+  dm: make sure to obey max_io_len_target_boundary (2019-05-21 19:15:20 -0400)
 
-dd if=/dev/zero of=/root/test0.img bs=512 count=10000 oflag=dsync
-10000+0 records in
-10000+0 records out
-5120000 bytes (5.1 MB, 4.9 MiB) copied, 3.87487 s, 1.3 MB/s
+Please pull, thanks.
+Mike
 
-The performance is still not as good as mq-deadline (which achieves
-1.6 MB/s), but this is a huge improvement for BFQ nonetheless!
+----------------------------------------------------------------
+- Fix a particularly glaring oversight in a DM core commit from 5.1 that
+  doesn't properly trim special IOs (e.g. discards) relative to
+  corresponding target's max_io_len_target_boundary().
 
-A tarball with the trace output from the 2 scenarios you requested,
-one with only the debug patch applied (trace-bfq-add-logs-and-BUG_ONs),
-and another with both patches applied (trace-bfq-boost-injection) is
-available here:
+----------------------------------------------------------------
+Michael Lass (1):
+      dm: make sure to obey max_io_len_target_boundary
 
-https://www.dropbox.com/s/pdf07vi7afido7e/bfq-traces.tar.gz?dl=0
-
-Thank you!
- 
-Regards,
-Srivatsa
-VMware Photon OS
+ drivers/md/dm.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)