From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH 2/3] block: Move non-rotational flag to queue limits Date: Tue, 31 May 2011 16:43:08 +0200 Message-ID: <4DE4FE7C.7000903@fusionio.com> References: <4DDEA689.2090004@fusionio.com> <1306464169-4291-1-git-send-email-martin.petersen@oracle.com> <1306464169-4291-3-git-send-email-martin.petersen@oracle.com> <20110527130248.GA17219@redhat.com> <4DE4E9A6.8060006@fusionio.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Martin K. Petersen" Cc: Mike Snitzer , "msb@chromium.org" , "linux-kernel@vger.kernel.org" , "dm-devel@redhat.com" List-Id: dm-devel.ids On 2011-05-31 16:28, Martin K. Petersen wrote: >>>>>> "Jens" == Jens Axboe writes: > > Jens> On 2011-05-31 04:19, Martin K. Petersen wrote: >>> - queue_flag_set_unlocked(QUEUE_FLAG_NONROT, disk->queue); >>> + blk_queue_non_rotational(queue); > > Jens> I don't like this part of the change. Before it was immediately > Jens> apparently that we were setting this flag, know you have no idea > Jens> what it does. Please make that blk_queue_set_non_rotational(). > > I was just trying to mimic the rest of the topology calls. > > How about: > > blk_queue_rotational(q, BLK_QUEUE_ROTATIONAL|BLK_QUEUE_NON_ROTATIONAL) > > Doing it that way would make the code clearer a few places too, I > think... I prefer having the function names be descriptive instead, but consistency is good as well. The problem with the above approach is that it usually requires defines to match, otherwise you don't know what the arguments do. So lets rather fix up the other names for the next kernel. -- Jens Axboe