Re: [PATCH v5 05/27] cxl/hdm: Use guard() in cxl_dpa_set_mode()

From: Davidlohr Bueso
Date: Wed Oct 30 2024 - 20:16:32 EST


On Tue, 29 Oct 2024, Ira Weiny wrote:

Additional DCD functionality is being added to this call which will be
simplified by the use of guard() with the cxl_dpa_rwsem.

Convert the function to use guard() prior to adding DCD functionality.

Suggested-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>

Reviewed-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>