From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from legacy.ddn.com ([64.47.133.206]:51864 "EHLO legacy.ddn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751366AbdJXP1D (ORCPT ); Tue, 24 Oct 2017 11:27:03 -0400 Date: Tue, 24 Oct 2017 09:26:59 -0600 From: Greg Edwards To: Christoph Hellwig CC: Al Viro , , Subject: Re: [PATCH] fs: guard_bio_eod() needs to consider partitions Message-ID: <20171024152658.GA1477@psuche> References: <20171024011007.24855-1-gedwards@ddn.com> <20171024021636.GZ21978@ZenIV.linux.org.uk> <20171024074615.GA14396@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20171024074615.GA14396@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Oct 24, 2017 at 09:46:15AM +0200, Christoph Hellwig wrote: > On Tue, Oct 24, 2017 at 03:16:36AM +0100, Al Viro wrote: >>> Fixes: 74d46992e0d9 ("block: replace bi_bdev with a gendisk pointer and partitions index") >>> Signed-off-by: Greg Edwards >> >> That smells like a nasty source of overhead, especially on SMP boxen... > > We could just use __disk_get_part similar to the partition remapping, > or just pass the block_device to guard_bio_eod. Do you have a preference? __disk_get_part would be isolated to guard_bio_eod. If we pass in the block_device, it would also touch all the mpage_bio_submit callers.