]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/block/cpqarray.c
block: implement and enforce request peek/start/fetch
[mirror_ubuntu-bionic-kernel.git] / drivers / block / cpqarray.c
index a5caeff4718e10cffd196cfdeacbb6e017bcaea2..a02dcfc00f134e548cf15b0fbca1f515962d500f 100644 (file)
@@ -903,7 +903,7 @@ static void do_ida_request(struct request_queue *q)
                goto startio;
 
 queue_next:
-       creq = elv_next_request(q);
+       creq = blk_peek_request(q);
        if (!creq)
                goto startio;
 
@@ -912,7 +912,7 @@ queue_next:
        if ((c = cmd_alloc(h,1)) == NULL)
                goto startio;
 
-       blkdev_dequeue_request(creq);
+       blk_start_request(creq);
 
        c->ctlr = h->ctlr;
        c->hdr.unit = (drv_info_t *)(creq->rq_disk->private_data) - h->drv;