hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/fs/namespace.c
....@@ -14,7 +14,6 @@
1414 #include <linux/mnt_namespace.h>
1515 #include <linux/user_namespace.h>
1616 #include <linux/namei.h>
17
-#include <linux/delay.h>
1817 #include <linux/security.h>
1918 #include <linux/cred.h>
2019 #include <linux/idr.h>
....@@ -322,11 +321,8 @@
322321 * incremented count after it has set MNT_WRITE_HOLD.
323322 */
324323 smp_mb();
325
- while (READ_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD) {
326
- preempt_enable();
327
- cpu_chill();
328
- preempt_disable();
329
- }
324
+ while (READ_ONCE(mnt->mnt.mnt_flags) & MNT_WRITE_HOLD)
325
+ cpu_relax();
330326 /*
331327 * After the slowpath clears MNT_WRITE_HOLD, mnt_is_readonly will
332328 * be set to match its requirements. So we must not load that until