File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -2432,12 +2432,6 @@ int ocfs2_inode_lock_full_nested(struct inode *inode,
24322432 * done this we have to return AOP_TRUNCATED_PAGE so the aop method
24332433 * that called us can bubble that back up into the VFS who will then
24342434 * immediately retry the aop call.
2435- *
2436- * We do a blocking lock and immediate unlock before returning, though, so that
2437- * the lock has a great chance of being cached on this node by the time the VFS
2438- * calls back to retry the aop. This has a potential to livelock as nodes
2439- * ping locks back and forth, but that's a risk we're willing to take to avoid
2440- * the lock inversion simply.
24412435 */
24422436int ocfs2_inode_lock_with_page (struct inode * inode ,
24432437 struct buffer_head * * ret_bh ,
@@ -2449,8 +2443,6 @@ int ocfs2_inode_lock_with_page(struct inode *inode,
24492443 ret = ocfs2_inode_lock_full (inode , ret_bh , ex , OCFS2_LOCK_NONBLOCK );
24502444 if (ret == - EAGAIN ) {
24512445 unlock_page (page );
2452- if (ocfs2_inode_lock (inode , ret_bh , ex ) == 0 )
2453- ocfs2_inode_unlock (inode , ex );
24542446 ret = AOP_TRUNCATED_PAGE ;
24552447 }
24562448
You can’t perform that action at this time.
0 commit comments