Messages in this thread | | | Date | Tue, 12 Dec 2023 11:41:49 -0800 | From | Ira Weiny <> | Subject | Re: [PATCH v4 2/3] dax/bus: Introduce guard(device) for device_{lock,unlock} flows |
| |
Vishal Verma wrote: > Introduce a guard(device) macro to lock a 'struct device', and unlock it > automatically when going out of scope using Scope Based Resource > Management semantics. A lot of the sysfs attribute writes in > drivers/dax/bus.c benefit from a cleanup using these, so change these > where applicable. > > Cc: Joao Martins <joao.m.martins@oracle.com> > Suggested-by: Dan Williams <dan.j.williams@intel.com> > Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> >
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
| |