Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbcCYETc (ORCPT ); Fri, 25 Mar 2016 00:19:32 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:63138 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbcCYET3 (ORCPT ); Fri, 25 Mar 2016 00:19:29 -0400 Subject: Re: [PATCH 1/6] block: ensure we don't truncate top bits of the request command flags To: Mike Christie , Christoph Hellwig References: <1458669320-6819-1-git-send-email-axboe@fb.com> <1458669320-6819-2-git-send-email-axboe@fb.com> <20160322185900.GB10113@infradead.org> <56F19672.7030508@fb.com> <56F49DB5.6070303@redhat.com> CC: , , , From: Jens Axboe Message-ID: <56F4BC28.1090901@fb.com> Date: Thu, 24 Mar 2016 22:18:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56F49DB5.6070303@redhat.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.54.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-25_01:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1523 Lines: 32 On 03/24/2016 08:08 PM, Mike Christie wrote: > On 03/22/2016 02:01 PM, Jens Axboe wrote: >> On 03/22/2016 12:59 PM, Christoph Hellwig wrote: >>> On Tue, Mar 22, 2016 at 11:55:15AM -0600, Jens Axboe wrote: >>>> Some of the flags that we want to use from the make_request_fn path >>>> are now larger than 32-bit, so change the functions involved to >>>> accept an u64 instead of an unsigned int. >>> >>> When did we start doing that? We really should merge Mike's split >>> of the operation style flags into the cmd_type before making things >>> even worse in the flags area. >> >> Just now, and I ran into it last week as well, for a test patch on cfq >> that passed in higher flags for get_request -> may_queue() as well. We >> can do Mike's split first, I think it's a good cleanup. As a standalone >> series, I needed it though. >> > > Hey, did you want any changes on that patchset? I was going to repost it > with the kbuild fix against linux-next, but I can make any changes you > wanted first. I don't believe I've ever been CC'ed on the posting, or it even being posted on the block list? If so, I don't see it... I did become aware of it since Christoph CC'ed me in. In general, I think it looks good, at least the end results. It's a bit murky in the middle, and the commit messages need some help. So go over everything, sanitize it, and repost it. I don't like the current pure flag based scheme we have, it's a mess of ops and modifiers. So splitting that up is definitely a good thing. -- Jens Axboe