---
name: "blk_rq_err_bytes"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/blk_rq_err_bytes"
---

# blk\_rq\_err\_bytes(9)

determine number of bytes till the next failure boundary

## NAME

blk\_rq\_err\_bytes - determine number of bytes till the next failure boundary

## SYNOPSIS

**unsigned int blk\_rq\_err\_bytes(const struct request \*** *rq***);**

## ARGUMENTS

*rq*

request to examine

## 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.

## RETURN

The number of bytes to fail.

## CONTEXT

queue\_lock must be held.

## COPYRIGHT
