• David Howells's avatar
    FS-Cache: Clear netfs pointers in cookie after detaching object, not before · 7e311a20
    David Howells authored
    Clear the pointers from the fscache_cookie struct to netfs private data after
    clearing the pointer to the cookie from the fscache_object struct and
    releasing the object lock, rather than before.
    
    This allows the netfs private data pointers to be relied on simply by holding
    the object lock, rather than having to hold the cookie lock.  This is makes
    things simpler as the cookie lock has to be taken before the object lock, but
    sometimes the object pointer is all that the code has.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    7e311a20
cookie.c 13.1 KB