mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
6466b211f7
commit
5b680d7afc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user