aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/ubd_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
-rw-r--r--arch/um/drivers/ubd_kern.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 402ba8f70fc9..aa9e926e13d7 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -1228,12 +1228,11 @@ static void do_ubd_request(struct request_queue *q)
1228 while(1){ 1228 while(1){
1229 struct ubd *dev = q->queuedata; 1229 struct ubd *dev = q->queuedata;
1230 if(dev->end_sg == 0){ 1230 if(dev->end_sg == 0){
1231 struct request *req = elv_next_request(q); 1231 struct request *req = blk_fetch_request(q);
1232 if(req == NULL) 1232 if(req == NULL)
1233 return; 1233 return;
1234 1234
1235 dev->request = req; 1235 dev->request = req;
1236 blkdev_dequeue_request(req);
1237 dev->start_sg = 0; 1236 dev->start_sg = 0;
1238 dev->end_sg = blk_rq_map_sg(q, req, dev->sg); 1237 dev->end_sg = blk_rq_map_sg(q, req, dev->sg);
1239 } 1238 }