diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-20 20:01:56 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-28 16:03:16 -0400 |
commit | a9136d4914f61110ca9897ec65ab620075c50298 (patch) | |
tree | e631e5eac17a7375fe4f5452e371892e4f4833d4 /fs/nfs/pnfs.c | |
parent | 8f0d27dc5d77b084b2e2fe6d883c4d5776287842 (diff) |
NFSv4.1: Get rid of pNFS spin lock debugging asserts...
These are all in static declared functions that are called only once.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index bdd93b969050..edc8288fd3d4 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -859,7 +859,6 @@ pnfs_layout_insert_lseg(struct pnfs_layout_hdr *lo, | |||
859 | 859 | ||
860 | dprintk("%s:Begin\n", __func__); | 860 | dprintk("%s:Begin\n", __func__); |
861 | 861 | ||
862 | assert_spin_locked(&lo->plh_inode->i_lock); | ||
863 | list_for_each_entry(lp, &lo->plh_segs, pls_list) { | 862 | list_for_each_entry(lp, &lo->plh_segs, pls_list) { |
864 | if (cmp_layout(&lseg->pls_range, &lp->pls_range) > 0) | 863 | if (cmp_layout(&lseg->pls_range, &lp->pls_range) > 0) |
865 | continue; | 864 | continue; |
@@ -913,7 +912,6 @@ pnfs_find_alloc_layout(struct inode *ino, | |||
913 | 912 | ||
914 | dprintk("%s Begin ino=%p layout=%p\n", __func__, ino, nfsi->layout); | 913 | dprintk("%s Begin ino=%p layout=%p\n", __func__, ino, nfsi->layout); |
915 | 914 | ||
916 | assert_spin_locked(&ino->i_lock); | ||
917 | if (nfsi->layout) { | 915 | if (nfsi->layout) { |
918 | if (test_bit(NFS_LAYOUT_DESTROYED, &nfsi->layout->plh_flags)) | 916 | if (test_bit(NFS_LAYOUT_DESTROYED, &nfsi->layout->plh_flags)) |
919 | return NULL; | 917 | return NULL; |
@@ -970,7 +968,6 @@ pnfs_find_lseg(struct pnfs_layout_hdr *lo, | |||
970 | 968 | ||
971 | dprintk("%s:Begin\n", __func__); | 969 | dprintk("%s:Begin\n", __func__); |
972 | 970 | ||
973 | assert_spin_locked(&lo->plh_inode->i_lock); | ||
974 | list_for_each_entry(lseg, &lo->plh_segs, pls_list) { | 971 | list_for_each_entry(lseg, &lo->plh_segs, pls_list) { |
975 | if (test_bit(NFS_LSEG_VALID, &lseg->pls_flags) && | 972 | if (test_bit(NFS_LSEG_VALID, &lseg->pls_flags) && |
976 | is_matching_lseg(&lseg->pls_range, range)) { | 973 | is_matching_lseg(&lseg->pls_range, range)) { |