[Devel] [PATCH hci-8.2 5/7] dm-ploop: drop the WARN on a non-write request failing with ENOSPC
Alexander Ivanov
alexander.ivanov at virtuozzo.com
Fri Nov 27 14:15:48 MSK 2026
ploop_prq_endio() warns when a request other than a write fails with
ENOSPC. But such requests fail so on errors of the lower file system:
- a flush, when vfs_fsync() of the top delta returns ENOSPC, as
process_ploop_fsync_work() passes the error to every flush pio
- a read, when a FUSE server returns ENOSPC for it
A WARN on an error of the lower file system takes the node down with
panic_on_warn.
Such a request is still delayed and retried, as before.
https://virtuozzo.atlassian.net/browse/VSTOR-152175
Fixes: 90bb85536272 ("dm-ploop: Add ploop target driver")
Feature: dm-ploop: ploop target driver
Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>
---
drivers/md/dm-ploop-map.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index 213f32a8e18d..131102da4c0a 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -219,11 +219,9 @@ static void ploop_prq_endio(struct pio *pio, void *prq_ptr,
* timeout. Note, that we do not handle merge here: merge
* callers receive -ENOSPC synchronous without intermediaries.
*/
- if (unlikely(bi_status == BLK_STS_NOSPC)) {
- WARN_ON_ONCE(!op_is_write(pio->bi_op));
- if (ploop_try_delay_enospc(prq, pio))
- return;
- }
+ if (unlikely(bi_status == BLK_STS_NOSPC) &&
+ ploop_try_delay_enospc(prq, pio))
+ return;
mempool_free(prq, pio->ploop->prq_pool);
dm_complete_request(rq, bi_status);
--
2.53.0
More information about the Devel
mailing list