1. NAME

blk_rq_err_bytes - determine number of bytes till the next failure boundary

2. SYNOPSIS

unsigned int blk_rq_err_bytes(const struct request *  rq );

3. ARGUMENTS

rq
    request to examine

4. DESCRIPTION

A request could be merge of IOs which require different failure handling. This function determines the number of bytes which can be failed from the beginning of the request without crossing into area which need to be retried further.

5. RETURN

The number of bytes to fail.

6. CONTEXT

queue_lock must be held.

7. COPYRIGHT