提交 832b52a1 编写于 作者: R Richard Weinberger

UBI: Block: Explain usage of blk_rq_map_sg()

Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 9aa272b4
......@@ -301,6 +301,12 @@ static void ubiblock_do_work(struct work_struct *work)
struct request *req = blk_mq_rq_from_pdu(pdu);
blk_mq_start_request(req);
/*
* It is safe to ignore the return value of blk_rq_map_sg() because
* the number of sg entries is limited to UBI_MAX_SG_COUNT
* and ubi_read_sg() will check that limit.
*/
blk_rq_map_sg(req->q, req, pdu->usgl.sg);
ret = ubiblock_read(pdu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册