void blk_start_request(struct request *req) { blk_dequeue_request(req); /* * We are now handing the request to the hardware, initialize * resid_len to full count and add the timeout handler. */ req->resid_len = blk_rq_bytes(req); if (unlikely(blk_bidi_rq(req))) req->next_rq->resid_len = blk_rq_bytes(req->next_rq); BUG_ON(test_bit(REQ_ATOM_COMPLETE, &req->atomic_flags)); blk_add_timer(req); } EXPORT_SYMBOL(blk_start_request);
blk_start_request
最新推荐文章于 2024-02-05 17:55:47 发布
本文介绍了一个用于启动块设备请求的函数blk_start_request。该函数负责将请求从软件队列移交给硬件处理,并初始化剩余长度计数及添加超时处理程序。

263

被折叠的 条评论
为什么被折叠?



