• Nick Piggin's avatar
    fs: force_reval_path drop rcu-walk before d_invalidate · bb20c18d
    Nick Piggin authored
    d_revalidate can return in rcu-walk mode even when it returns 0.  We can't just
    call any old dcache function on rcu-walk dentry (the dentry is unstable, so
    even through d_lock can safely be taken, the result may no longer be what we
    expect -- careful re-checks would be required). So just drop rcu in this case.
    
    (I missed this conversion when switching to the rcu-walk convention that Linus
    suggested)
    Signed-off-by: default avatarNick Piggin <npiggin@kernel.dk>
    bb20c18d
namei.c 83.3 KB