Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753294AbbEFGs5 (ORCPT ); Wed, 6 May 2015 02:48:57 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:39289 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753264AbbEFGsy (ORCPT ); Wed, 6 May 2015 02:48:54 -0400 Date: Tue, 5 May 2015 23:48:49 -0700 From: Christoph Hellwig To: Ming Lin Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, Jens Axboe , Kent Overstreet , Dongsu Park , Christoph Hellwig , Al Viro , Ming Lei , Neil Brown , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Lars Ellenberg , drbd-user@lists.linbit.com, Jiri Kosina , Geoff Levand , Jim Paris , Joshua Morris , Philip Kelleher , Minchan Kim , Nitin Gupta , Oleg Drokin , Andreas Dilger , Keith Busch Subject: Re: [PATCH 01/10] block: make generic_make_request handle arbitrarily sized bios Message-ID: <20150506064849.GB5181@infradead.org> References: <1430203717-13307-1-git-send-email-mlin@kernel.org> <1430203717-13307-2-git-send-email-mlin@kernel.org> <20150428114320.GA9790@lst.de> <5549AFD4.5020803@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5549AFD4.5020803@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 695 Lines: 21 On Tue, May 05, 2015 at 11:08:20PM -0700, Ming Lin wrote: > How about below incremental patch? > - > - /* > - * If the queue doesn't support SG gaps and adding this > - * offset would create a gap, disallow it. > - */ > - if (q->queue_flags & (1 << QUEUE_FLAG_SG_GAPS) && > - bvec_gap_to_prev(prev, offset)) > - return 0; You need to keep the explicit checks for the BLOCK_PC case, as we can't split those. Otherwise it looks fine. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/