[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/common: rwlock: Constify the parameter of _rw_is{,_write}_locked()



Hi Jan,

On 31/01/2023 09:34, Jan Beulich wrote:
On 30.01.2023 19:28, Julien Grall wrote:
From: Julien Grall <jgrall@xxxxxxxxxx>

The lock is not meant to be modified by _rw_is{,_write}_locked(). So
constify it.

This is helpful to be able to assert if the lock is taken when the
underlying structure is const.

Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
(maybe also Requested-by)

I will add a requested-by while committing (waiting for a push before doing it).

Cheers,

--
Julien Grall



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.