From: Trond Myklebust Date: Fri, 17 Jun 2016 20:48:20 +0000 (-0400) Subject: NFSv4.1/pnfs: Add sparse lock annotations for pnfs_find_alloc_layout X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e5241e43883058b61a955b4bbd677fe4ffd3ae4e;p=linux-beck.git NFSv4.1/pnfs: Add sparse lock annotations for pnfs_find_alloc_layout Signed-off-by: Trond Myklebust Reviewed-by: Jeff Layton Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index f619139621ec..ca488b52cbfb 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -1298,6 +1298,8 @@ static struct pnfs_layout_hdr * pnfs_find_alloc_layout(struct inode *ino, struct nfs_open_context *ctx, gfp_t gfp_flags) + __releases(&ino->i_lock) + __acquires(&ino->i_lock) { struct nfs_inode *nfsi = NFS_I(ino); struct pnfs_layout_hdr *new = NULL;