Re: [PATCH 2/4] xfs: xfs_alloc_file_space() fails to detect ENOSPC

Christoph Hellwig
2024-04-03T04:40:21Z

On Wed, Apr 03, 2024 at 08:38:17AM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> xfs_alloc_file_space ends up in an endless loop when
> xfs_bmapi_write() returns nimaps == 0 at ENOSPC. The process is
> unkillable, and so just runs around in a tight circle burning CPU
> until the system is rebooted.

What is your reproducer? Let's just fix this for real.