Re: Serializing tokens problem

看板DFBSD_kernel作者時間21年前 (2005/01/14 05:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
:Hello gang! : :I'm trying to use tokens to serialize access and updates to :a hash containing nnpfs nodes. As a start I put the hash lookup :routine between token acquisition and release. All code using :the tokens are below. : :Actually I have one token per list in the hash, probably overkill :) Hmm. The code you attached and the use of the token looks just fine to me. This could imply that some sort of stack corruption is occuring inside the nnpfs_handle_eq() call. -Matt :there's something I'm missing because this soon gives the following :panic (backtrace below): :panic: assertion: tok->t_cpu == gd in lwkt_reltoken : :What am I doing wrong?
文章代碼(AID): #11vkZL00 (DFBSD_kernel)
文章代碼(AID): #11vkZL00 (DFBSD_kernel)