Re: [PATCH] vfs: shave work on failed file open

From: Christian Brauner
Date: Tue Sep 26 2023 - 10:24:38 EST


> > if (WARN_ON_ONCE(atomic_long_cmpxchg(&file->f_count, 1, 0) != 1)) {

> bench again.

Can you see how much of a difference it makes because imho it really
looks a lot nicer then this ugly atomic_read followed by atomic_set...