diff options
author | Richard Weinberger <richard@nod.at> | 2015-01-28 10:37:40 -0500 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-01-28 10:37:40 -0500 |
commit | 832b52a15085d04039b01cec56845d3972c2f301 (patch) | |
tree | ab3d3e9887c06d69d92c444b6f417e2a7ba5b5ae | |
parent | 9aa272b492e7551a9ee0e2c83c720ea013698485 (diff) |
UBI: Block: Explain usage of blk_rq_map_sg()
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | drivers/mtd/ubi/block.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c index 00caf460337e..995e61c38f24 100644 --- a/drivers/mtd/ubi/block.c +++ b/drivers/mtd/ubi/block.c | |||
@@ -301,6 +301,12 @@ static void ubiblock_do_work(struct work_struct *work) | |||
301 | struct request *req = blk_mq_rq_from_pdu(pdu); | 301 | struct request *req = blk_mq_rq_from_pdu(pdu); |
302 | 302 | ||
303 | blk_mq_start_request(req); | 303 | blk_mq_start_request(req); |
304 | |||
305 | /* | ||
306 | * It is safe to ignore the return value of blk_rq_map_sg() because | ||
307 | * the number of sg entries is limited to UBI_MAX_SG_COUNT | ||
308 | * and ubi_read_sg() will check that limit. | ||
309 | */ | ||
304 | blk_rq_map_sg(req->q, req, pdu->usgl.sg); | 310 | blk_rq_map_sg(req->q, req, pdu->usgl.sg); |
305 | 311 | ||
306 | ret = ubiblock_read(pdu); | 312 | ret = ubiblock_read(pdu); |