Linux block layer
 help / color / mirror / Atom feed
* [PATCH] zloop: explicitly mention full zone when writing to it
@ 2026-10-12 13:25 Christoph Hellwig
  2026-10-12 13:31 ` Damien Le Moal
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2026-10-12 13:25 UTC (permalink / raw)
  To: axboe, dlemoal; +Cc: linux-block

Don't print the impossibly large write pointer, but directly mention
the full zone when a write to one is received.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/block/zloop.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/block/zloop.c b/drivers/block/zloop.c
index 394dc2408ed7..f8988f9b5d04 100644
--- a/drivers/block/zloop.c
+++ b/drivers/block/zloop.c
@@ -603,8 +603,12 @@ 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 full zone: sect %llu\n",
+				       zone_no, 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;
 		}
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-12 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-12 13:25 [PATCH] zloop: explicitly mention full zone when writing to it Christoph Hellwig
2026-10-12 13:31 ` Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox