Received: by 10.223.164.221 with SMTP id h29csp738828wrb; Tue, 24 Oct 2017 08:27:40 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RG7ghkVN9BKNs0fOiCYT3i6JiJ+8q1o4qqi78xnJDoWW7hF1G+HzSt8FuYkXmlutrE0A5P X-Received: by 10.99.124.27 with SMTP id x27mr15082307pgc.304.1508858859920; Tue, 24 Oct 2017 08:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508858859; cv=none; d=google.com; s=arc-20160816; b=yhCMH6ChXAH7+O+DT8prW+bGmDNlZzdHdJciVvDIBb1T0TJszUM1eFatHi1QfuWH+9 j7ZNrQf1M1YY4lljZjx/ysmBkWXqP1uUDP9qRDAUn3nqwJjiEp6upBwP+y2iyCbCopW4 WBMXX1LjE5vFTQCGrtv1kSv7hcWyFi+qmjomDIUN2PCtI7wNfR1FA/BZbn+O0wTob+pv 5YI8FIYcjrW7bgvIy+67h6vYAIbyct5HWSgiwc9SAnUMHV7cse2Ec7vCYHyBjm2K96+3 VgRSYBTzWk5vWkmWfeFEhFbagkUUgkCFi2SWj1W6N5u3+Xm/X/eMw902M1D5adoFeNBX MDqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=855lHTmSgYgxoSoyohvwswxtMNPrxiZS8ExUgnNPe3Y=; b=oLdS/OEaDc7as3p1PiRpcffYh+bU/7XN3tm+PcQ9NOCOoxOu9jzpi5C/xhPK2k5BVD oOlEmHAF+3VNbtV9P54bc3Qv5pAQd56Tv/ANAVVbode3yAH57to1vStk/stFhetbMhM7 jQiUdNA7sVtjssnzrtGapbcqxQpd218ESkQwea8UHJQm/tGKSy/0OrxTrPE8An3Q4AN+ MrJ15YUYo+UAtSvj+jMXSsZBk6SOiFQLEVvIxXYP5m3pHKBvaNmZGoe8EcCI8Ce7OrdW p7pyC8AGUOu0Jtottj6NSGjh2Dwr3VIga34Quln0eEt86xeEGumSnRH6JykvldoMMV4A /f1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si286398plz.155.2017.10.24.08.27.25; Tue, 24 Oct 2017 08:27:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751654AbdJXP1F (ORCPT + 99 others); Tue, 24 Oct 2017 11:27:05 -0400 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 Received: from LAX-EX-CAHT1.datadirect.datadirectnet.com (10.8.103.81) by LAX-EX-CAHT2.datadirect.datadirectnet.com (10.8.103.82) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 24 Oct 2017 08:27:02 -0700 Received: from psuche (10.8.30.128) by LAX-EX-CAHT1.datadirect.datadirectnet.com (10.8.103.81) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 24 Oct 2017 08:27:01 -0700 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> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [10.8.30.128] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. From 1582124233898372932@xxx Tue Oct 24 07:47:27 +0000 2017 X-GM-THRID: 1582099735264682689 X-Gmail-Labels: Inbox,Category Forums