Re: [PATCH v2] audit: Avoid excessive dput/dget in audit_context setup and reset paths

From: Mateusz Guzik

Date: Thu Feb 05 2026 - 12:54:24 EST


On Thu, Feb 5, 2026 at 6:20 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> Mateusz: *is* there a measurable effect? Because if there isn't, I'm
> very tempted to simply revert that thing. "Churn of adding fs_struct.h
> as needed" is not the problem - try "exposing the object internals to
> far larger subset of the kernel". We had interesting bugs with weird
> shit deciding to poke in there, locking and refcounting be damned.

This one I did not bother benchmarking as it is an obvious change --
read a var directly instead of going through a func call.

If this is causing trouble then it definitely needs to be reverted,
but any woes only speak to the mess in the header files.