Re: [PATCH] rust: workqueue: define built-in bh queues
From: Jarkko Sakkinen
Date: Fri Feb 21 2025 - 23:16:06 EST
On Fri, Feb 21, 2025 at 05:35:31PM -0500, Hamza Mahfooz wrote:
> We provide these methods because it lets us access these queues from
> Rust without using unsafe code.
>
> Signed-off-by: Hamza Mahfooz <hamzamahfooz@xxxxxxxxxxxxxxxxxxx>
Just getting familiar how code testing and reviews go with Rust code,
as I might put out even a driver at some point of time, so let's give
this a shot :-)
Using 1st person plural is usually almost a cardinal sin almost and is
somewhat exhausting to read. "These methods" refer to nothing and the
commit message does not educate me why the accessors are needed.
It should be IMHO language agnostic that commit message is more
important than the source code. It weights now even more than ever
before because it is also AI acid test. The current commit message
is as good as it did not exist at all.
Based on these conclusions I'd start the commit message by saying
that "Provide safe accessors to the workqueue bottom-halves."
Then add another sentence on why they are required (i.e. who will
be the caller for these).
BR, Jarkko