提交 18811272 编写于 作者: J Jens Axboe

block: add comment on why we save and disable interrupts in flush_plug_list()

It's done at the top to avoid doing it for every queue we unplug.
Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
上级 94b5eb28
......@@ -2696,6 +2696,11 @@ static void flush_plug_list(struct blk_plug *plug)
q = NULL;
depth = 0;
/*
* Save and disable interrupts here, to avoid doing it for every
* queue lock we have to take.
*/
local_irq_save(flags);
while (!list_empty(&list)) {
rq = list_entry_rq(list.next);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册