Skip to content
Snippets Groups Projects
Commit 3b36ad93 authored by bwzhou's avatar bwzhou
Browse files

Branch b1_6

b=14326
r=johann,bwzhou

Use old size assignment to avoid deadlock caused by ll_inode_size_lock calls down semaphore under spinlock held.
parent aea68c8a
No related branches found
No related tags found
No related merge requests found
......@@ -1739,9 +1739,13 @@ void ll_update_inode(struct inode *inode, struct lustre_md *md)
inode->i_rdev = old_decode_dev(body->rdev);
#endif
if (body->valid & OBD_MD_FLSIZE) {
#if 0 /* Can't block ll_test_inode->ll_update_inode, b=14326*/
ll_inode_size_lock(inode, 0);
i_size_write(inode, body->size);
ll_inode_size_unlock(inode, 0);
#else
inode->i_size = body->size;
#endif
}
if (body->valid & OBD_MD_FLBLOCKS)
inode->i_blocks = body->blocks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment