mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
zloop: explicitly mention zone condition when a write fails to it
Don't print the impossibly large write pointer, but directly mention the zone condition when a write to a zone in a condition that does not allow writes is received. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://patch.msgid.link/20261012141551.1336261-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d4fabede1d
commit
a408a6e074
|
|
@ -603,8 +603,13 @@ static int zloop_seq_write_prep(struct zloop_cmd *cmd)
|
|||
}
|
||||
} else {
|
||||
if (cmd->sector != zone->wp) {
|
||||
pr_err("Zone %u: unaligned write: sect %llu, wp %llu\n",
|
||||
zone_no, cmd->sector, zone->wp);
|
||||
if (zone->wp == ULLONG_MAX)
|
||||
pr_err("Zone %u: write to %s zone: sect %llu\n",
|
||||
zone_no, blk_zone_cond_str(zone->cond),
|
||||
cmd->sector);
|
||||
else
|
||||
pr_err("Zone %u: unaligned write: sect %llu, wp %llu\n",
|
||||
zone_no, cmd->sector, zone->wp);
|
||||
ret = -EIO;
|
||||
goto out_unlock;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user