[LU-4902] Do not require rpc_lock for readdir Created: 14/Apr/14  Updated: 26/Aug/15  Resolved: 19/Jun/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0, Lustre 2.4.3
Fix Version/s: Lustre 2.6.0

Type: Bug Priority: Major
Reporter: Di Wang Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-4906 rm -rf triggers too much MDS_READPAGE Resolved
Severity: 3
Rank (Obsolete): 13538

 Description   

[4/13/14, 3:46:55 AM] Alex Zhuravlev: mdc_read_page() enqueues a lock with IT_READDIR, but then in mdc_get_rpc_lock():

static inline void mdc_get_rpc_lock(struct mdc_rpc_lock *lck,
				    struct lookup_intent *it)
{
	ENTRY;

	if (it != NULL && (it->it_op == IT_GETATTR || it->it_op == IT_LOOKUP ||
			   it->it_op == IT_LAYOUT))
		return;

[4/13/14, 3:47:30 AM] Alex Zhuravlev: so, enqueue for readdir is serialized with open/reint ?



 Comments   
Comment by Di Wang [ 06/Jun/14 ]

The fix is included in http://review.whamcloud.com/10622 for LU-4906.

Comment by Andreas Dilger [ 19/Jun/14 ]

This fix was landed as part of http://review.whamcloud.com/10622

Generated at Sat Feb 10 01:46:50 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.