From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759096AbZGIJRl (ORCPT ); Thu, 9 Jul 2009 05:17:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757021AbZGIJRc (ORCPT ); Thu, 9 Jul 2009 05:17:32 -0400 Received: from ip67-152-220-66.z220-152-67.customer.algx.net ([67.152.220.66]:15793 "EHLO daytona.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756777AbZGIJRc (ORCPT ); Thu, 9 Jul 2009 05:17:32 -0400 Message-ID: <4A55B5A9.2060705@panasas.com> Date: Thu, 09 Jul 2009 12:17:29 +0300 From: Boaz Harrosh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090315 Remi/3.0-0.b2.fc10.remi Thunderbird/3.0b2 MIME-Version: 1.0 To: Tejun Heo CC: Jens Axboe , Linux Kernel , James Bottomley , linux-scsi , Niel Lambrechts , FUJITA Tomonori , Jens Axboe Subject: Re: [PATCH 3/4] block: implement mixed merge of different failfast requests References: <1246610898-22350-1-git-send-email-tj@kernel.org> <1246610898-22350-4-git-send-email-tj@kernel.org> <4A507203.8020001@panasas.com> <4A553E36.8060006@kernel.org> In-Reply-To: <4A553E36.8060006@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Jul 2009 09:17:32.0105 (UTC) FILETIME=[16BC2390:01CA0076] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/09/2009 03:47 AM, Tejun Heo wrote: > Hello, > > Boaz Harrosh wrote: >>> @@ -1165,6 +1165,7 @@ static int __make_request(struct request_queue *q, struct bio *bio) >>> const unsigned short prio = bio_prio(bio); >>> const int sync = bio_sync(bio); >>> const int unplug = bio_unplug(bio); >>> + const unsigned int ff = bio->bi_rw & REQ_FAILFAST_MASK; >> Perhaps a bio_fail_fast(bio) >> and also an blk_failfast(rq). > > Me not being a big fan of those simple accessors, I want to avoid > adding those especially the use of bio ones are mostly confined to > block layer proper. > OK but at least take care of blk_noretry_request(), at the minimum kill it, and use req->cmd_flags & REQ_FAILFAST_MASK everywhere. > Thanks. > Thanks Boaz