Re: [PATCH v2 0/7] Use guard() instead of rwsem locking

From: Davidlohr Bueso
Date: Tue Feb 18 2025 - 12:54:52 EST


On Mon, 17 Feb 2025, Li Ming wrote:

Use scoped resource management to replace open-coded locking operation
is recommended. CXL subsystem still remains some down_read()/up_read()
and down_write()/up_write() which can be replaced by guard() simply.

This patchset includes simply using guard() instead of some
down_read()/up_read() and down_write()/up_write() cases. Besides, it
also includes some function code cleanup after using guard().

For the series, feel free to add my:

Acked-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>