s390/ap: Rename mutex ap_perms_mutex to ap_attr_mutex

The mutex ap_perms_mutex was already used not only for protection
of the struct ap_perms ap_perms variable but also for an consistent
update of the AP bus sysfs attributes apmask and aqmask.

So rename this mutex to ap_attr_mutex which better reflects the
current use. This is also a preparation for an upcoming patch which
will use this mutex to lock updates on a new sysfs attribute.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
Harald Freudenberger
2025-11-19 16:27:37 +01:00
committed by Heiko Carstens
parent d38a87d7c0
commit 8babcc2b6a
4 changed files with 52 additions and 48 deletions

View File

@@ -281,7 +281,7 @@ struct ap_perms {
};
extern struct ap_perms ap_perms;
extern struct mutex ap_perms_mutex;
extern struct mutex ap_attr_mutex;
/*
* Get ap_queue device for this qid.