block: move poll code to blk-mq

The poll code is blk-mq specific, let's move it to blk-mq.c. This
is a prep patch for improving the polling code.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
此提交包含在:
Jens Axboe
2016-11-04 09:34:34 -06:00
父節點 b425b0201e
當前提交 bbd7bb7017
共有 5 個檔案被更改,包括 57 行新增49 行删除

查看文件

@@ -96,7 +96,7 @@ static void nvmet_execute_rw(struct nvmet_req *req)
cookie = submit_bio(bio);
blk_poll(bdev_get_queue(req->ns->bdev), cookie);
blk_mq_poll(bdev_get_queue(req->ns->bdev), cookie);
}
static void nvmet_execute_flush(struct nvmet_req *req)