From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753096AbcHUR6x (ORCPT ); Sun, 21 Aug 2016 13:58:53 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35794 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752011AbcHUR6v (ORCPT ); Sun, 21 Aug 2016 13:58:51 -0400 Date: Sun, 21 Aug 2016 09:58:44 -0800 From: Kent Overstreet To: Ming Lei Cc: Eric Wheeler , Christoph Hellwig , Jens Axboe , Linux Kernel Mailing List , linux-block , Sebastian Roesner , "4.3+" , Shaohua Li , Jens Axboe Subject: Re: [PATCH v3] block: make sure big bio is splitted into at most 256 bvecs Message-ID: <20160821175844.byt3lejy7mu5sohc@kmo-pixel> References: <1471273882-3938-1-git-send-email-ming.lei@canonical.com> <20160815182328.GA13886@infradead.org> <20160815191253.cxbjui3mymrkpkz6@kmo-pixel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.2-neo (2016-07-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 21, 2016 at 05:31:33PM +0800, Ming Lei wrote: > This patch is definitely correct, and I don't see dealing with 'no_merge' > should be removed. > > In this case, the bio is still possible to merge with others because > it doesn't violate any limit of the queue because it just can't be held in > 256 bvecs, that means it is correct to clear no_merge for this situation. > > Also I don't think it is complicated or ugly to deal with the flag. It's extra unnecessary code. All other things being equal, less code is always better than more code. It works just fine without it, what's the justification for adding the flag? Don't be so dismissive of other maintainer's concerns, we've got to deal with this code too. Especially when I and Christoph are agreeing on something - how often does that happen?