Skip to content

Commit 5b680d7

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 6466b21 commit 5b680d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/block/zloop.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,10 @@ static blk_status_t zloop_queue_rq(struct blk_mq_hw_ctx *hctx,
891891
struct zloop_cmd *cmd = blk_mq_rq_to_pdu(rq);
892892
struct zloop_device *zlo = rq->q->queuedata;
893893

894-
if (data_race(READ_ONCE(zlo->state)) == Zlo_deleting)
894+
if (data_race(READ_ONCE(zlo->state)) == Zlo_deleting) {
895+
rq->rq_flags |= RQF_QUIET;
895896
return BLK_STS_IOERR;
897+
}
896898

897899
/*
898900
* If we need to strongly order zone append operations, set the request

0 commit comments

Comments
 (0)