Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752448Ab0HSKUz (ORCPT ); Thu, 19 Aug 2010 06:20:55 -0400 Received: from verein.lst.de ([213.95.11.210]:58783 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072Ab0HSKUx (ORCPT ); Thu, 19 Aug 2010 06:20:53 -0400 Date: Thu, 19 Aug 2010 12:20:23 +0200 From: Christoph Hellwig To: Tejun Heo Cc: Christoph Hellwig , jaxboe@fusionio.com, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, James.Bottomley@suse.de, tytso@mit.edu, chris.mason@oracle.com, swhiteho@redhat.com, konishi.ryusuke@lab.ntt.co.jp, dm-devel@redhat.com, vst@vlnb.net, jack@suse.cz, rwheeler@redhat.com, hare@suse.de Subject: Re: [PATCHSET block#for-2.6.36-post] block: replace barrier with sequenced flush Message-ID: <20100819102023.GA6736@lst.de> References: <1281616891-5691-1-git-send-email-tj@kernel.org> <20100818094620.GA14707@lst.de> <4C6D0021.4040601@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C6D0021.4040601@kernel.org> User-Agent: Mutt/1.3.28i X-Spam-Score: 0 () Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2082 Lines: 35 On Thu, Aug 19, 2010 at 11:57:53AM +0200, Tejun Heo wrote: > On 08/18/2010 11:46 AM, Christoph Hellwig wrote: > > FYI: One issue with this series is that make_request based drivers > > not have to access all REQ_FLUSH and REQ_FUA requests. We'll either > > need to add handling to empty REQ_FLUSH requests to all of them or > > figure out a way to prevent them getting sent. That is assuming they'll > > simply ignore REQ_FLUSH/REQ_FUA on normal writes. > > Can you be a bit more specific? In most cases, request based drivers > should be fine. They sit behind the front most request_queue which > would discompose REQ_FLUSH/FUAs into appropriate command sequence. I said make_request based drivers, that is drivers taking bios. These get bios directly from __generic_make_request and need to deal with REQ_FLUSH/FUA themselves. We have quite a few more than just dm/md of this kind: arch/powerpc/sysdev/axonram.c: blk_queue_make_request(bank->disk->queue, axon_ram_make_request); drivers/block/aoe/aoeblk.c: blk_queue_make_request(d->blkq, aoeblk_make_request); drivers/block/brd.c: blk_queue_make_request(brd->brd_queue, brd_make_request); drivers/block/drbd/drbd_main.c: blk_queue_make_request(q, drbd_make_request_26); drivers/block/loop.c: blk_queue_make_request(lo->lo_queue, loop_make_request); drivers/block/pktcdvd.c: blk_queue_make_request(q, pkt_make_request); drivers/block/ps3vram.c: blk_queue_make_request(queue, ps3vram_make_request); drivers/block/umem.c: blk_queue_make_request(card->queue, mm_make_request); drivers/s390/block/dcssblk.c: blk_queue_make_request(dev_info->dcssblk_queue, dcssblk_make_request); drivers/s390/block/xpram.c: blk_queue_make_request(xpram_queues[i], xpram_make_request); drivers/staging/zram/zram_drv.c:blk_queue_make_request(zram->queue, zram_make_request); -- 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/