[LU-22] ldlm_resource::lr_lvb_data is protected by wrong lock Created: 14/Dec/10 Updated: 07/Apr/11 Resolved: 07/Apr/11 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.1.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Liang Zhen (Inactive) | Assignee: | Zhenyu Xu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Severity: | 3 |
| Bugzilla ID: | 24,336 |
| Rank (Obsolete): | 5085 |
| Description |
|
I found lr_lvb_data is protected by resource lock (lock_res_and_lock) at some places, i.e: but what I learnt from the code is, it should be protected by lr_lvb_sem. |
| Comments |
| Comment by Liang Zhen (Inactive) [ 15/Dec/10 ] |
|
patch is at here: it's also in inspection on bugzilla |
| Comment by Liang Zhen (Inactive) [ 21/Dec/10 ] |
|
patch landed on master |
| Comment by Liang Zhen (Inactive) [ 21/Dec/10 ] |
|
patch landed on master |
| Comment by Liang Zhen (Inactive) [ 22/Dec/10 ] |
|
I found the fix is not completed, there are more issues in filter_intent_policy, which still access lr_lvb_data with holding resource lock, we can't fix it easily by changing it to lr_lvb_sem. |
| Comment by Liang Zhen (Inactive) [ 22/Dec/10 ] |
|
I think we probably should just use lr_lvb_sem for serialize lvbo_init/lvbo_fini with other threads(pin/unpin the inode), and use resource::lr_lock to protect update/access of resource::lr_lvb_data. |
| Comment by Liang Zhen (Inactive) [ 23/Dec/10 ] |
|
reassign to bobijam, as I still got a few pending things at hand... |
| Comment by Zhenyu Xu [ 23/Dec/10 ] |
|
after some discussion with fan & liang, we'd use lr_lock to protect lr_lvbo_data while lr_lvbo_sem is only for serializing lvbo_init. |
| Comment by Zhenyu Xu [ 26/Dec/10 ] |
|
patch posted in http://review.whamcloud.com/158 |
| Comment by Build Master (Inactive) [ 31/Mar/11 ] |
|
Integrated in Bobi Jam : e50244c5ebbcd5d0e78f6e03366b2efcbefac4ab
|
| Comment by Build Master (Inactive) [ 31/Mar/11 ] |
|
Integrated in Bobi Jam : 40defeaaaf7510e5b4e78542cf122506c029313b
|
| Comment by Build Master (Inactive) [ 31/Mar/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 01/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Build Master (Inactive) [ 07/Apr/11 ] |
|
Integrated in Oleg Drokin : e1491c1b4b6e21352f58b94eee6d125a63566d29
|
| Comment by Zhenyu Xu [ 07/Apr/11 ] |
|
landed on fs/lustre-release |