diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-06-17 23:48:20 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-06-24 19:01:00 +0300 |
commit | e5241e43883058b61a955b4bbd677fe4ffd3ae4e (patch) | |
tree | 8b4cd6cb4240663939d9c5efaadb27979bc1e310 /fs | |
parent | 67a3b721462c9b3bdc36ad6a583f41706402b3ea (diff) | |
download | linux-e5241e43883058b61a955b4bbd677fe4ffd3ae4e.tar.xz |
NFSv4.1/pnfs: Add sparse lock annotations for pnfs_find_alloc_layout
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |