From: "Martin K. Petersen" Subject: Re: [PATCH v5 01/11] block: make generic_make_request handle arbitrarily sized bios Date: Mon, 10 Aug 2015 22:00:44 -0400 Message-ID: References: <20150731213831.GA16464@redhat.com> <1438412290.26596.14.camel@hasee> <20150801163356.GA21478@redhat.com> <1439099990.7880.0.camel@hasee> <20150809064128.GB2436@infradead.org> <1439103347.7880.3.camel@hasee> <20150809070128.GA25739@infradead.org> <1439104707.7880.8.camel@hasee> <20150810150216.GA22719@redhat.com> <1439230696.26458.6.camel@ssi> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1439230696.26458.6.camel@ssi> (Ming Lin's message of "Mon, 10 Aug 2015 11:18:16 -0700") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: drbd-dev-bounces-cunTk1MwBs8qoQakbn7OcQ@public.gmane.org Errors-To: drbd-dev-bounces-cunTk1MwBs8qoQakbn7OcQ@public.gmane.org To: Ming Lin Cc: Mike Snitzer , Ming Lei , device-mapper development , Christoph Hellwig , Alasdair Kergon , Lars Ellenberg , Philip Kelleher , Christoph Hellwig , Kent Overstreet , Nitin Gupta , Ming Lin , Oleg Drokin , Al Viro , Jens Axboe , axboe-b10kYP2dOMg@public.gmane.org, Andreas Dilger , "Martin K. Petersen" , Geoff Levand , Jiri Kosina , lkml , Jim Paris , Minchan Kim , Joe Thornber , Dongsu Park , drbd-user@lists.l List-Id: dm-devel.ids >>>>> "Ming" == Ming Lin writes: Ming> Did you mean still use (UINT_MAX >> 9) in blkdev_issue_discard()? Ming> But that doesn't work for dm-thinp. See Kent's suggestion to use Ming> 1<<31. I'm not sure why things are not working for dm-thinp. Presumably Kent's code would split the discard at a granularity boundary so why would that cause problems for dm? In looking at this I just found out that we'll corrupt data on certain SCSI configs with the granularity enforcement in place. I'll have to conjure up a fix for that... -- Martin K. Petersen Oracle Linux Engineering