lkml.org 
[lkml]   [2006]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 001 of 11] knfsd: nfsd: lockdep annotation fix

    nfsv2 needs the I_MUTEX_PARENT on the directory when creating
    a file too.

    Signed-off-by: Neil Brown <neilb@suse.de>

    ### Diffstat output
    ./fs/nfsd/nfsproc.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff .prev/fs/nfsd/nfsproc.c ./fs/nfsd/nfsproc.c
    --- .prev/fs/nfsd/nfsproc.c 2006-08-24 16:21:23.000000000 +1000
    +++ ./fs/nfsd/nfsproc.c 2006-08-24 16:21:35.000000000 +1000
    @@ -225,7 +225,7 @@ nfsd_proc_create(struct svc_rqst *rqstp,
    nfserr = nfserr_exist;
    if (isdotent(argp->name, argp->len))
    goto done;
    - fh_lock(dirfhp);
    + fh_lock_nested(dirfhp, I_MUTEX_PARENT);
    dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len);
    if (IS_ERR(dchild)) {
    nfserr = nfserrno(PTR_ERR(dchild));
    -
    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-08-24 08:39    [W:0.023 / U:0.796 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site