Revert "kernel: throne_tracker: offload to kthread tiann #2632"

This reverts commit 8364d6d4a4.
This commit is contained in:
ShirkNeko
2025-09-24 16:26:27 +08:00
parent 89fe18d929
commit 41f7921993
4 changed files with 2 additions and 130 deletions

View File

@@ -7,37 +7,4 @@ void ksu_throne_tracker_exit(void);
void track_throne(void);
/*
* small helper to check if lock is held
* false - file is stable
* true - file is being deleted/renamed
* possibly optional
*
*/
static bool is_lock_held(const char *path)
{
struct path kpath;
// kern_path returns 0 on success
if (kern_path(path, 0, &kpath))
return true;
// just being defensive
if (!kpath.dentry) {
path_put(&kpath);
return true;
}
if (!spin_trylock(&kpath.dentry->d_lock)) {
pr_info("%s: lock held, bail out!\n", __func__);
path_put(&kpath);
return true;
}
// we hold it ourselves here!
spin_unlock(&kpath.dentry->d_lock);
path_put(&kpath);
return false;
}
#endif