aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-06-01 10:02:01 -0600
committerJens Axboe <axboe@kernel.dk>2020-06-01 10:02:01 -0600
commitabb30460bda232f304f642510adc8c6576ea51ea (patch)
tree6e7c4e29dfdf6ce96d3badc6c42b93df4d69e8e1 /include/linux/bio.h
parentblk-wbt: rename __wbt_update_limits to wbt_update_limits (diff)
downloadwireguard-linux-abb30460bda232f304f642510adc8c6576ea51ea.tar.xz
wireguard-linux-abb30460bda232f304f642510adc8c6576ea51ea.zip
block: mark bio_wouldblock_error() bio with BIO_QUIET
We really don't care about triggering buffer errors for this condition. This avoids a spew of: Buffer I/O error on dev sdc, logical block 785929, async page read Buffer I/O error on dev sdc, logical block 759095, async page read Buffer I/O error on dev sdc, logical block 766922, async page read Buffer I/O error on dev sdc, logical block 17659, async page read Buffer I/O error on dev sdc, logical block 637571, async page read Buffer I/O error on dev sdc, logical block 39241, async page read Buffer I/O error on dev sdc, logical block 397241, async page read Buffer I/O error on dev sdc, logical block 763992, async page read from -EAGAIN conditions on request allocation for async reads. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r--include/linux/bio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 941378ec5b39..683ff5fd8871 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -417,6 +417,7 @@ static inline void bio_io_error(struct bio *bio)
static inline void bio_wouldblock_error(struct bio *bio)
{
+ bio_set_flag(bio, BIO_QUIET);
bio->bi_status = BLK_STS_AGAIN;
bio_endio(bio);
}