diff options
author | Tom Haynes <loghyr@primarydata.com> | 2014-12-11 13:04:55 -0500 |
---|---|---|
committer | Tom Haynes <loghyr@primarydata.com> | 2015-02-03 14:06:31 -0500 |
commit | 085d1e33a6a8495d9afa58ad2b8b7ea74d613515 (patch) | |
tree | 3f39d90c0ccbce5f8f67ab3667304f18d22de70b /fs/nfs/pnfs.h | |
parent | f54bcf2ecee982da47c2baf8bd87fd9ad9984651 (diff) |
pnfs: Do not grab the commit_info lock twice when rescheduling writes
Acked-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index f17663446acc..e94f6050e9b1 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -375,15 +375,6 @@ pnfs_scan_commit_lists(struct inode *inode, struct nfs_commit_info *cinfo, | |||
375 | return NFS_SERVER(inode)->pnfs_curr_ld->scan_commit_lists(cinfo, max); | 375 | return NFS_SERVER(inode)->pnfs_curr_ld->scan_commit_lists(cinfo, max); |
376 | } | 376 | } |
377 | 377 | ||
378 | static inline void | ||
379 | pnfs_recover_commit_reqs(struct inode *inode, struct list_head *list, | ||
380 | struct nfs_commit_info *cinfo) | ||
381 | { | ||
382 | if (cinfo->ds == NULL || cinfo->ds->nwritten == 0) | ||
383 | return; | ||
384 | NFS_SERVER(inode)->pnfs_curr_ld->recover_commit_reqs(list, cinfo); | ||
385 | } | ||
386 | |||
387 | static inline struct nfs_page * | 378 | static inline struct nfs_page * |
388 | pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, | 379 | pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, |
389 | struct page *page) | 380 | struct page *page) |
@@ -554,12 +545,6 @@ pnfs_scan_commit_lists(struct inode *inode, struct nfs_commit_info *cinfo, | |||
554 | return 0; | 545 | return 0; |
555 | } | 546 | } |
556 | 547 | ||
557 | static inline void | ||
558 | pnfs_recover_commit_reqs(struct inode *inode, struct list_head *list, | ||
559 | struct nfs_commit_info *cinfo) | ||
560 | { | ||
561 | } | ||
562 | |||
563 | static inline struct nfs_page * | 548 | static inline struct nfs_page * |
564 | pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, | 549 | pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, |
565 | struct page *page) | 550 | struct page *page) |