[LU-2745] lnet_create_reply_msg Created: 04/Feb/13  Updated: 31/Dec/13  Resolved: 19/Nov/13

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

Type: Bug Priority: Minor
Reporter: thfeathers Assignee: Liang Zhen (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 6669

 Description   

NULL == msg cause lockup



 Comments   
Comment by Liang Zhen (Inactive) [ 04/Feb/13 ]

Could you provide a little more details? e.g. which version and when it can happen, how the lockup looks like, thanks.

Comment by thfeathers [ 25/Feb/13 ]

i just browsed the source code 2.3.0
function : lnet_create_reply_msg
//------------------------------------------------------------------

cpt = lnet_cpt_of_cookie(getmd->md_lh.lh_cookie);
lnet_res_lock(cpt);//lock res

LASSERT (getmd->md_refcount > 0);

if (msg == NULL) {
CERROR ("%s: Dropping REPLY from %s: can't allocate msg\n",
libcfs_nid2str(ni->ni_nid), libcfs_id2str(peer_id));
//------------------here!goto with hold the res lock
goto drop;
}

if (getmd->md_threshold == 0) {
CERROR ("%s: Dropping REPLY from %s for inactive MD %p\n",
libcfs_nid2str(ni->ni_nid), libcfs_id2str(peer_id),
getmd);
//-------------------here!goto with release the res lock
lnet_res_unlock(cpt);
goto drop;
}

Comment by Liang Zhen (Inactive) [ 25/Feb/13 ]

ah, thanks, I will post a patch.

Comment by Liang Zhen (Inactive) [ 27/Feb/13 ]

patch is here: http://review.whamcloud.com/#change,5542

Comment by Liang Zhen (Inactive) [ 12/Sep/13 ]

patch landed

Comment by Liang Zhen (Inactive) [ 12/Sep/13 ]

hmm, it's not landed, reopen it.

Comment by Peter Jones [ 19/Nov/13 ]

It's landed for 2.6 now

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