提交 bdd646a4 编写于 作者: N Nick Piggin 提交者: Linus Torvalds

[PATCH] blk: unplug later

get_request_wait needn't unplug the device immediately.
Signed-off-by: NNick Piggin <nickpiggin@yahoo.com.au>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 fde6ad22
......@@ -1969,7 +1969,6 @@ static struct request *get_request_wait(request_queue_t *q, int rw)
DEFINE_WAIT(wait);
struct request *rq;
generic_unplug_device(q);
do {
struct request_list *rl = &q->rq;
......@@ -1981,6 +1980,7 @@ static struct request *get_request_wait(request_queue_t *q, int rw)
if (!rq) {
struct io_context *ioc;
generic_unplug_device(q);
io_schedule();
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册