Re: [PATCH 4/5] btrfs: add nowait parameter to btrfs_encoded_read

Mark Harmstone
2024-10-15T08:48:54Z

On 14/10/24 23:12, Jens Axboe wrote:
> >
> On 10/14/24 11:18 AM, Mark Harmstone wrote:
>> Adds a nowait parameter to btrfs_encoded_read, which if it is true
>> causes the function to return -EAGAIN rather than sleeping.
>
> Can't we just rely on kiocb->ki_flags & IOCB_NOWAIT for this?
> Doesn't really change the patch much, but you do avoid that extra
> parameter.

Thanks Jens. Yes, that makes sense.

Mark