public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] brd: support barriers
@ 2009-04-15  8:27 Nick Piggin
  2009-04-15  9:08 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Piggin @ 2009-04-15  8:27 UTC (permalink / raw)
  To: Jens Axboe, Linux Kernel Mailing List

Hi Jens,
Do you have a tree I can send this though? Is this the right way to
do what I want?

--

brd is always ordered (not that it matters, as it is defined not to
survive when the system goes down). So tell the block layer it is
ordered, which might be of help with testing filesystems.

Signed-off-by: Nick Piggin <npiggin@suse.de>
---
 drivers/block/brd.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/drivers/block/brd.c
===================================================================
--- linux-2.6.orig/drivers/block/brd.c
+++ linux-2.6/drivers/block/brd.c
@@ -436,6 +436,7 @@ static struct brd_device *brd_alloc(int
 	if (!brd->brd_queue)
 		goto out_free_dev;
 	blk_queue_make_request(brd->brd_queue, brd_make_request);
+	blk_queue_ordered(brd->brd_queue, QUEUE_ORDERED_TAG, NULL);
 	blk_queue_max_sectors(brd->brd_queue, 1024);
 	blk_queue_bounce_limit(brd->brd_queue, BLK_BOUNCE_ANY);
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-15  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15  8:27 [patch] brd: support barriers Nick Piggin
2009-04-15  9:08 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox