Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258AbaBHAzU (ORCPT ); Fri, 7 Feb 2014 19:55:20 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:50502 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbaBHAzT (ORCPT ); Fri, 7 Feb 2014 19:55:19 -0500 Date: Sat, 8 Feb 2014 08:55:07 +0800 From: Shaohua Li To: Christoph Hellwig Cc: Jens Axboe , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] block: rework flush sequencing for blk-mq Message-ID: <20140208005507.GA1766@kernel.org> References: <20140130132620.GA6031@infradead.org> <20140130132630.GB6031@infradead.org> <20140207011827.GA4735@kernel.org> <20140207141915.GA24176@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140207141915.GA24176@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 07, 2014 at 06:19:15AM -0800, Christoph Hellwig wrote: > On Fri, Feb 07, 2014 at 09:18:27AM +0800, Shaohua Li wrote: > > Reusing the tag for flush request is considered before. The problem is driver > > need get a request from a tag, reusing tag breaks this. The possible solution > > is we provide a blk_mq_tag_to_request, and force driver uses it. And in this > > function, if tag equals to flush_rq tag, we return flush_request. > > If we want to support tag to request reverse mapping we defintively > need to do this in the core, at which point special casing flush_rq > there is easy. > > Which driver needs the reverse mapping? Neither virtio_blk nor null_blk > seem to and I've not seen any other conversions submitted except for the > scsi work. Yep, none driver needs it. But reverse mapping is the one of the points we use tag, so better we prepare it. Thanks, Shaohua -- 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/