On Wed, Jun 04, 2025 at 11:12:07AM +0800, Japin Li wrote:
> On Tue, 03 Jun 2025 at 13:27, Michael Paquier wrote:
>> Sounds like a copy-pasto error to me, so good idea to reuse this
>> routine. pgaio_uring_procs() is only used for shmem sizing and in a
>> check at backend initialization currently.
On Tue, 03 Jun 2025 at 13:27, Michael Paquier wrote:
> On Tue, Jun 03, 2025 at 12:16:21PM +0800, Japin Li wrote:
>> I've replaced the hardcoded arithmetic expression for calculating TotalProcs
>> within the pgaio_uring_shmem_init() with a call to the dedicated
>> pgaio_uring_procs() function.
>>
On Tue, Jun 03, 2025 at 12:16:21PM +0800, Japin Li wrote:
> I've replaced the hardcoded arithmetic expression for calculating TotalProcs
> within the pgaio_uring_shmem_init() with a call to the dedicated
> pgaio_uring_procs() function.
>
> This can make the code's intent clearer. Simplifies futur
be updated in one place.
--
Regards,
Japin Li
>From c3477213ff64788d32430361a8298c8f8a958238 Mon Sep 17 00:00:00 2001
From: Japin Li
Date: Tue, 3 Jun 2025 12:07:04 +0800
Subject: [PATCH v1] Encapsulate io_uring process count calculation
Replace the direct arithmetic expression for TotalProc