Function report |
Source Code:block\blk-core.c |
Create Date:2022-07-28 17:00:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_update_request - Special helper function for request stacking drivers*@req: the request being processed*@error: block status code*@nr_bytes: number of bytes to complete @req* Description:* Ends I/O on a number of bytes attached to @req, but doesn't
Proto:bool blk_update_request(struct request *req, blk_status_t error, unsigned int nr_bytes)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct request * | req | |
blk_status_t | error | |
unsigned int | nr_bytes |
1443 | If Not bio Then Return false |
1447 | If blk_integrity_rq(req) && req_op(req) == REQ_OP_READ && error == BLK_STS_OK Then complete_fn(req, nr_bytes) |
1452 | If Value for the false possibility is greater at compile time(error && !blk_rq_is_passthrough(req) && !(rq_flags & don't warn about errors )) Then print_req_error(req, error, __func__) |
1456 | blk_account_io_completion(req, nr_bytes) |
1458 | total_bytes = 0 |
1461 | bio_bytes = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( residual I/O count , nr_bytes) |
1463 | If bio_bytes == residual I/O count Then bio = request queue link |
1468 | req_bio_endio(req, bio, bio_bytes, error) |
1470 | total_bytes += bio_bytes |
1473 | If Not nr_bytes Then Break |
1480 | If Not bio Then |
1486 | total data len = 0 |
1487 | Return false |
1490 | total data len -= total_bytes |
1493 | If Not blk_rq_is_passthrough(req) Then sector cursor += total_bytes >> 9 |
1497 | If rq_flags & merge of different types, fail separately Then |
1498 | op and common flags &= ~REQ_FAILFAST_MASK |
1502 | If Not (rq_flags & Look at ->special_vec for the actual data payload instead of thebio chain. ) Then |
1507 | If blk_rq_bytes(req) < blk_rq_cur_bytes(req) Then |
1508 | blk_dump_rq_flags(req, "request botched") |
1509 | total data len = blk_rq_cur_bytes(req) |
1516 | Return true |
Name | Describe |
---|---|
blk_mq_end_request |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |