autofs-5.1.9 - remove mounts_mutex macros From: Ian Kent The mounts mutex use has been removed but the macros to lock and unlock it haven't been removed. Signed-off-by: Ian Kent --- CHANGELOG | 1 + include/automount.h | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 23ef2889e..33784c85d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -29,6 +29,7 @@ - clear per-mount timeout if not set. - handle sss special case getautomntbyname() error. - fix deadlock in master_notify_submount(). +- remove mounts_mutex macros. 02/11/2023 autofs-5.1.9 - fix kernel mount status notification. diff --git a/include/automount.h b/include/automount.h index 9548db83c..9f0aff772 100644 --- a/include/automount.h +++ b/include/automount.h @@ -612,20 +612,6 @@ int handle_packet_missing_direct(struct autofs_point *ap, autofs_packet_missing_ void rm_unwanted(struct autofs_point *ap, const char *path, int incl); int count_mounts(struct autofs_point *ap, const char *path, dev_t dev); -#define mounts_mutex_lock(ap) \ -do { \ - int _m_lock = pthread_mutex_lock(&ap->mounts_mutex); \ - if (_m_lock) \ - fatal(_m_lock); \ -} while (0) - -#define mounts_mutex_unlock(ap) \ -do { \ - int _m_unlock = pthread_mutex_unlock(&ap->mounts_mutex); \ - if (_m_unlock) \ - fatal(_m_unlock); \ -} while(0) - static inline time_t monotonic_time(time_t *t) { struct timespec ts;