Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbbKKHxo (ORCPT ); Wed, 11 Nov 2015 02:53:44 -0500 Received: from sabe.cs.wisc.edu ([128.105.6.20]:49172 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbbKKHxm (ORCPT ); Wed, 11 Nov 2015 02:53:42 -0500 Subject: Re: [dm-devel] [RFC PATCH 00/32] separate operations from flags in the bio/request structs To: device-mapper development References: <1446654807-6935-1-git-send-email-mchristi@redhat.com> <563A36FC.6010001@sandisk.com> <563A3813.5010604@cs.wisc.edu> <20151107102309.GE12117@infradead.org> Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, Bart Van Assche , drbd-dev@lists.linbit.com From: Mike Christie Message-ID: <5642F3F4.2060007@cs.wisc.edu> Date: Wed, 11 Nov 2015 01:53:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151107102309.GE12117@infradead.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1330 Lines: 31 On 11/07/2015 04:23 AM, Christoph Hellwig wrote: > On Wed, Nov 04, 2015 at 10:53:39AM -0600, Mike Christie wrote: >>> If you have to touch submit_bio() and submit_bio_wait(), how about >>> requiring the callers of these functions to set the cmd and flags >>> arguments in the bio structure and to leave out the cmd and flags >>> arguments from the submit_bio() and submit_bio_wait() functions ? A >>> (compile tested only) patch that implements this idea is available at >>> https://lkml.org/lkml/2014/6/2/173. >>> >> >> Yeah, I can do that. > > I think this would be useful to do at the beginning of the series. I just wanted to double check that we wanted to do this. We no longer have the bvec merge functions so the original reason given in the thread/patch Bart referenced is no longer valid. Offlist it was suggested that dropping the argument from submit_bio might still improve performance, but I modified xfs and dm and did some testing and did not see anything. So the change is not needed, and it would only be done because people feel it would improve the interface. -- 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/