[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/52] migration/rdma: Eliminate error_propagate()
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 10/52] migration/rdma: Eliminate error_propagate() |
Date: |
Wed, 27 Sep 2023 21:02:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Eric Blake <eblake@redhat.com> writes:
> On Mon, Sep 18, 2023 at 04:41:24PM +0200, Markus Armbruster wrote:
>> When all we do with an Error we receive into a local variable is
>> propagating to somewhere else, we can just as well receive it there
>> right away.
>>
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>>
>> ret = qemu_rdma_alloc_pd_cq(rdma);
>> if (ret) {
>> - ERROR(temp, "rdma migration: error allocating pd and cq! Your
>> mlock()"
>> + ERROR(errp, "rdma migration: error allocating pd and cq! Your
>> mlock()"
>> " limits may be too low. Please check $ ulimit -a # and
>> "
>> "search for 'ulimit -l' in the output");
>
> Not this patch's problem, but noticing it while here:
>
> it would help if we had a consistent style on whether to break long
> strings after the space instead of carrying the space to the next
> line, rather than using both styles in the same concatenated string.
Oh yes. I prefer to break lines before space, because leading space is
more visible than trailing space.
However, I elected to refrain from touching error messages in this
series. It's long enough as it is.
- Re: [PATCH 47/52] migration/rdma: Don't report received completion events as error, (continued)
- [PATCH 19/52] migration/rdma: Fix qemu_get_cm_event_timeout() to always set error, Markus Armbruster, 2023/09/18
- [PATCH 33/52] migration/rdma: Drop "@errp is clear" guards around error_setg(), Markus Armbruster, 2023/09/18
- [PATCH 10/52] migration/rdma: Eliminate error_propagate(), Markus Armbruster, 2023/09/18
- [PATCH 13/52] migration/rdma: Make qemu_rdma_buffer_mergable() return bool, Markus Armbruster, 2023/09/18
- [PATCH 05/52] migration/rdma: Consistently use uint64_t for work request IDs, Markus Armbruster, 2023/09/18
- [PATCH 43/52] migration/rdma: Convert qemu_rdma_alloc_pd_cq() to Error, Markus Armbruster, 2023/09/18