Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755554AbbEFHNU (ORCPT ); Wed, 6 May 2015 03:13:20 -0400 Received: from mail.kernel.org ([198.145.29.136]:33748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753934AbbEFHNS (ORCPT ); Wed, 6 May 2015 03:13:18 -0400 MIME-Version: 1.0 In-Reply-To: <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> <20150506064849.GB5181@infradead.org> Date: Wed, 6 May 2015 00:13:14 -0700 Message-ID: Subject: Re: [PATCH 01/10] block: make generic_make_request handle arbitrarily sized bios From: Ming Lin To: Christoph Hellwig Cc: Ming Lin , Christoph Hellwig , lkml , Jens Axboe , Kent Overstreet , Dongsu Park , 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 901 Lines: 25 On Tue, May 5, 2015 at 11:48 PM, Christoph Hellwig wrote: > 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. I'll keep it. Thanks. > > 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/