Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208250
b: refs/heads/master
c: 7f9815f
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and Jens Axboe committed Aug 7, 2010
1 parent 42a4881 commit c5fc35d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90467c294aba7f911bdae72ed86995cf1de4d364
refs/heads/master: 7f9815f09dc201f2205981c11fadcf82a9e3cc42
12 changes: 2 additions & 10 deletions trunk/drivers/block/osdblk.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ static void osdblk_rq_fn(struct request_queue *q)
* driver-specific, etc.
*/

do_flush = (rq->special == (void *) 0xdeadbeefUL);
do_flush = rq->cmd_flags & REQ_FLUSH;
do_write = (rq_data_dir(rq) == WRITE);

if (!do_flush) { /* osd_flush does not use a bio */
Expand Down Expand Up @@ -380,14 +380,6 @@ static void osdblk_rq_fn(struct request_queue *q)
}
}

static void osdblk_prepare_flush(struct request_queue *q, struct request *rq)
{
/* add driver-specific marker, to indicate that this request
* is a flush command
*/
rq->special = (void *) 0xdeadbeefUL;
}

static void osdblk_free_disk(struct osdblk_device *osdev)
{
struct gendisk *disk = osdev->disk;
Expand Down Expand Up @@ -447,7 +439,7 @@ static int osdblk_init_disk(struct osdblk_device *osdev)
blk_queue_stack_limits(q, osd_request_queue(osdev->osd));

blk_queue_prep_rq(q, blk_queue_start_tag);
blk_queue_ordered(q, QUEUE_ORDERED_DRAIN_FLUSH, osdblk_prepare_flush);
blk_queue_ordered(q, QUEUE_ORDERED_DRAIN_FLUSH, NULL);

disk->queue = q;

Expand Down

0 comments on commit c5fc35d

Please sign in to comment.