lkml.org 
[lkml]   [2006]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 23/19] FS-Cache: NFS: Don't invoke FS-Cache from nfs_zap_caches()
    Date

    Don't invoke FS-Cache from nfs_zap_caches() as that is supposed to be quick
    whereas FS-Cache may get semaphores and other sleepy things.

    As it happens, the cache will be zapped upon the next revalidation anyway, and
    so this is probably unnecessary.

    Signed-Off-By: David Howells <dhowells@redhat.com>
    ---

    fs/nfs/inode.c | 2 --
    1 files changed, 0 insertions(+), 2 deletions(-)

    diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
    index 0d683eb..25376a5 100644
    --- a/fs/nfs/inode.c
    +++ b/fs/nfs/inode.c
    @@ -130,8 +130,6 @@ void nfs_zap_caches(struct inode *inode)
    spin_lock(&inode->i_lock);
    nfs_zap_caches_locked(inode);
    spin_unlock(&inode->i_lock);
    -
    - nfs_fscache_zap_fh_cookie(inode);
    }

    void nfs_zap_mapping(struct inode *inode, struct address_space *mapping)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-11-15 17:49    [W:0.023 / U:33.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site