diff options
author | Christoph Hellwig <hch@lst.de> | 2022-03-23 17:38:15 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-15 06:33:03 -0600 |
commit | 3d973a76e54c30772e72128ab0552ca75e588893 (patch) | |
tree | 3bd77def7e884654fc1403190e1ac53125facfbd /block | |
parent | ccf16413e520164eb718cf8b22a30438da80ff23 (diff) | |
download | linux-stable-3d973a76e54c30772e72128ab0552ca75e588893.tar.gz linux-stable-3d973a76e54c30772e72128ab0552ca75e588893.tar.bz2 linux-stable-3d973a76e54c30772e72128ab0552ca75e588893.zip |
block: don't print I/O error warning for dead disks
When a disk has been marked dead, don't print warnings for I/O errors
as they are very much expected.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220323163815.1526998-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index ed3ed86f7dd2..c4370d276170 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -794,7 +794,8 @@ bool blk_update_request(struct request *req, blk_status_t error, #endif if (unlikely(error && !blk_rq_is_passthrough(req) && - !(req->rq_flags & RQF_QUIET))) { + !(req->rq_flags & RQF_QUIET)) && + !test_bit(GD_DEAD, &req->q->disk->state)) { blk_print_req_error(req, error); trace_block_rq_error(req, error, nr_bytes); } |