Re: [PATCHv4 1/9] block: fix infiniate loop for invalid zone append
From: Christoph Hellwig <hch@lst.de>
Date: 2022-05-31 06:20:09
Also in:
linux-fsdevel
From: Christoph Hellwig <hch@lst.de>
Date: 2022-05-31 06:20:09
Also in:
linux-fsdevel
On Wed, May 25, 2022 at 06:06:05PM -0700, Keith Busch wrote:
From: Keith Busch <kbusch@kernel.org> Returning 0 early from __bio_iov_append_get_pages() for the max_append_sectors warning just creates an infinite loop since 0 means success, and the bio will never fill from the unadvancing iov_iter. We could turn the return into an error value, but it will already be turned into an error value later on, so just remove the warning. Clearly no one ever hit it anyway.
Looks good: Reviewed-by: Christoph Hellwig <hch@lst.de>