aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/jsflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sbus/char/jsflash.c')
-rw-r--r--drivers/sbus/char/jsflash.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/sbus/char/jsflash.c b/drivers/sbus/char/jsflash.c
index f572a4a1d141..6d4651684688 100644
--- a/drivers/sbus/char/jsflash.c
+++ b/drivers/sbus/char/jsflash.c
@@ -186,10 +186,7 @@ static void jsfd_do_request(struct request_queue *q)
186{ 186{
187 struct request *req; 187 struct request *req;
188 188
189 req = elv_next_request(q); 189 req = blk_fetch_request(q);
190 if (req)
191 blkdev_dequeue_request(req);
192
193 while (req) { 190 while (req) {
194 struct jsfd_part *jdp = req->rq_disk->private_data; 191 struct jsfd_part *jdp = req->rq_disk->private_data;
195 unsigned long offset = blk_rq_pos(req) << 9; 192 unsigned long offset = blk_rq_pos(req) << 9;
@@ -212,11 +209,8 @@ static void jsfd_do_request(struct request_queue *q)
212 jsfd_read(req->buffer, jdp->dbase + offset, len); 209 jsfd_read(req->buffer, jdp->dbase + offset, len);
213 err = 0; 210 err = 0;
214 end: 211 end:
215 if (!__blk_end_request_cur(req, err)) { 212 if (!__blk_end_request_cur(req, err))
216 req = elv_next_request(q); 213 req = blk_fetch_request(q);
217 if (req)
218 blkdev_dequeue_request(req);
219 }
220 } 214 }
221} 215}
222 216