… > +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c … > +static ssize_t rdtgroup_mbm_assign_write(struct kernfs_open_file *of, > + char *buf, size_t nbytes, > + loff_t off) > +{ … > + cpus_read_lock(); > + mutex_lock(&rdtgroup_mutex); > + > + rdt_last_cmd_clear(); … > + mutex_unlock(&rdtgroup_mutex); > + cpus_read_unlock(); > + > + return ret ?: nbytes; > +} … Would you become interested to apply statements like the following? * guard(cpus_read_lock)(); https://elixir.bootlin.com/linux/v6.10-rc4/source/include/linux/cleanup.h#L133 * guard(mutex)(&rdtgroup_mutex); https://elixir.bootlin.com/linux/v6.10-rc4/source/include/linux/mutex.h#L196 Regards, Markus