]> Pileus Git - ~andy/linux/blobdiff - block/blk-flush.c
block: get rid of elv_insert() interface
[~andy/linux] / block / blk-flush.c
index 93d5fd8e51ebfe1126746321af3a9f143831ac83..d6275cbbaf355d0673132f5f6b0bff7af68c484e 100644 (file)
@@ -261,7 +261,7 @@ static bool blk_kick_flush(struct request_queue *q)
        q->flush_rq.end_io = flush_end_io;
 
        q->flush_pending_idx ^= 1;
-       elv_insert(q, &q->flush_rq, ELEVATOR_INSERT_REQUEUE);
+       __elv_add_request(q, &q->flush_rq, ELEVATOR_INSERT_REQUEUE);
        return true;
 }
 
@@ -281,7 +281,7 @@ static void flush_data_end_io(struct request *rq, int error)
  * blk_insert_flush - insert a new FLUSH/FUA request
  * @rq: request to insert
  *
- * To be called from elv_insert() for %ELEVATOR_INSERT_FLUSH insertions.
+ * To be called from __elv_add_request() for %ELEVATOR_INSERT_FLUSH insertions.
  * @rq is being submitted.  Analyze what needs to be done and put it on the
  * right queue.
  *