diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-04-14 10:17:49 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-04-15 13:58:36 -0600 |
| commit | 5b680d7afc4a2fefa0b4f584462c7540de56e2e4 (patch) | |
| tree | ca16e751613dffb5aaf3a978e94a0b92664d8fbc /drivers/block | |
| parent | 6466b211f797ae88073b5826dd764a6a98b67edb (diff) | |
| download | lwn-5b680d7afc4a2fefa0b4f584462c7540de56e2e4.tar.gz lwn-5b680d7afc4a2fefa0b4f584462c7540de56e2e4.zip | |
zloop: set RQF_QUIET when completing requests on deleted devices
Reduce the dmesg spam for tests that involve device deletion.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://patch.msgid.link/20260414081811.549755-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
| -rw-r--r-- | drivers/block/zloop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/zloop.c b/drivers/block/zloop.c index a738f8629062..7257188dd3a8 100644 --- a/drivers/block/zloop.c +++ b/drivers/block/zloop.c @@ -891,8 +891,10 @@ static blk_status_t zloop_queue_rq(struct blk_mq_hw_ctx *hctx, struct zloop_cmd *cmd = blk_mq_rq_to_pdu(rq); struct zloop_device *zlo = rq->q->queuedata; - if (data_race(READ_ONCE(zlo->state)) == Zlo_deleting) + if (data_race(READ_ONCE(zlo->state)) == Zlo_deleting) { + rq->rq_flags |= RQF_QUIET; return BLK_STS_IOERR; + } /* * If we need to strongly order zone append operations, set the request |
