]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix profile_open_file() last_stat locking 1452/head
authorAlexey Milovidov <milovidov@clickhouse.com>
Mon, 10 Apr 2023 02:19:01 +0000 (04:19 +0200)
committerGreg Hudson <ghudson@mit.edu>
Fri, 19 Sep 2025 15:28:56 +0000 (11:28 -0400)
commit3466589de7de7e74aa53c560b83313ae7d2f8b6f
treef6207a1e88b3f2be0fb18796943ff59d286eff2d
parent4c836b880003a8960d95e93a6707110e3215774f
Fix profile_open_file() last_stat locking

Commit 53d6d0d64e96b84b57b7446a787e683312e2a529 changed
profile_open_file() to force a stat() when reusing a profile object,
by setting the last_stat field to 0 on the data object.  The last_stat
field is controlled by the data object mutex (unlike the refcount
field, which is controlled by g_shared_trees_mutex).  Lock the data
object before setting last_stat.

[ghudson@mit.edu: switched to using profile_update_data_file_locked()
so we don't lock and unlock the data object twice; rewrote commit
message]

ticket: 9184 (new)
src/util/profile/prof_file.c