| To: | xfs-masters@xxxxxxxxxxx |
|---|---|
| Subject: | [xfs-masters] [Bug 7632] Race: a lock should be acquired before calling bhv_base_unlocked |
| From: | bugme-daemon@xxxxxxxxxxxxxxxxxxx |
| Date: | Tue, 5 Dec 2006 15:36:07 -0800 |
| Reply-to: | xfs-masters@xxxxxxxxxxx |
| Sender: | xfs-masters-bounce@xxxxxxxxxxx |
http://bugzilla.kernel.org/show_bug.cgi?id=7632 ------- Additional Comments From tammy000@xxxxxxxxx 2006-12-05 15:32 ------- Check the comments before bhv_base() (attached). It suggests acquiring the lock. 157 /* 158 * Return the base behavior in the chain, or NULL if the chain 159 * is empty. 160 * 161 * The caller has not read locked the behavior chain, so acquire the 162 * lock before traversing the chain. 163 */ 164 bhv_desc_t * 165 bhv_base(bhv_head_t *bhp) 166 { 167 bhv_desc_t *curdesc; 168 169 for (curdesc = bhp->bh_first; 170 curdesc != NULL; 171 curdesc = curdesc->bd_next) { 172 173 if (curdesc->bd_next == NULL) { 174 return curdesc; 175 } 176 } 177 178 return NULL; 179 } ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [xfs-masters] [Bug 7632] Race: a lock should be acquired before calling bhv_base_unlocked, bugme-daemon |
|---|---|
| Next by Date: | [xfs-masters] [Bug 3224] XFS internal error xfs_iformat(6) at line 546 of file fs/xfs/xfs_inode.c, bugme-daemon |
| Previous by Thread: | [xfs-masters] [Bug 7632] Race: a lock should be acquired before calling bhv_base_unlocked, bugme-daemon |
| Next by Thread: | [xfs-masters] [Bug 7632] Race: a lock should be acquired before calling bhv_base_unlocked, bugme-daemon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |