projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf1641
)
block: don't print I/O error warning for dead disks
author
Christoph Hellwig
<hch@lst.de>
Wed, 23 Mar 2022 16:38:15 +0000
(17:38 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 15 Apr 2022 12:33:03 +0000
(06:33 -0600)
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>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index ed3ed86f7dd2426ed8d31ccaa6660f1189d352c3..c4370d2761706d102d8c211119f96dcabe90f336 100644
(file)
--- 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);
}