Thread (19 messages) 19 messages, 4 authors, 2021-07-15

Re: [PATCH 6/7] namei: clean up do_linkat retry logic

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2021-07-12 18:58:07
Also in: linux-fsdevel

On Mon, Jul 12, 2021 at 5:37 AM Dmitry Kadashev [off-list ref] wrote:
Moving the main logic to a helper function makes the whole thing much
easier to follow.
Ok, this has the same thing as the previous patches had.

I see why the old code tried to avoid the repeat of some tests, but
honestly, that "retry_estale()" might as well be marked "unlikely()",
and we might as well do the test again if it triggers.

That said, in this case we actually end up doing other things too in
"do_linkat()", so I guess it could go either way.

              Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help