X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=block%2Fblk-exec.c;h=49557e91f0dab58cda736b556378525dbea497b8;hb=5c1bccf645d4ab65e4c7502acb42e8b9afdb5bdc;hp=4f52f279205942f48c2870d4ee77447d0aea515a;hpb=9a2d43b7566caeeeb414aa628bc2759028897dbb;p=safe%2Fjmp%2Flinux-2.6 diff --git a/block/blk-exec.c b/block/blk-exec.c index 4f52f27..49557e9 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c @@ -16,9 +16,9 @@ /** * blk_end_sync_rq - executes a completion event on a request * @rq: request to complete - * @error: end io status of the request + * @error: end I/O status of the request */ -void blk_end_sync_rq(struct request *rq, int error) +static void blk_end_sync_rq(struct request *rq, int error) { struct completion *waiting = rq->end_io_data; @@ -31,7 +31,6 @@ void blk_end_sync_rq(struct request *rq, int error) */ complete(waiting); } -EXPORT_SYMBOL(blk_end_sync_rq); /** * blk_execute_rq_nowait - insert a request into queue for execution @@ -42,7 +41,7 @@ EXPORT_SYMBOL(blk_end_sync_rq); * @done: I/O completion handler * * Description: - * Insert a fully prepared request at the back of the io scheduler queue + * Insert a fully prepared request at the back of the I/O scheduler queue * for execution. Don't wait for completion. */ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, @@ -52,7 +51,6 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, int where = at_head ? ELEVATOR_INSERT_FRONT : ELEVATOR_INSERT_BACK; rq->rq_disk = bd_disk; - rq->cmd_flags |= REQ_NOMERGE; rq->end_io = done; WARN_ON(irqs_disabled()); spin_lock_irq(q->queue_lock); @@ -73,7 +71,7 @@ EXPORT_SYMBOL_GPL(blk_execute_rq_nowait); * @at_head: insert request at head or tail of queue * * Description: - * Insert a fully prepared request at the back of the io scheduler queue + * Insert a fully prepared request at the back of the I/O scheduler queue * for execution and wait for completion. */ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk,