Actions
Submit #2714
closedSpinlock changes
Start date:
08/16/2014
Due date:
% Done:
100%
Estimated time:
Description
- Adding descry field to struct spin lock, changed initialiser and spin_init function
Files
Actions
Added by dclink over 10 years ago. Updated about 10 years ago.
100%
Description
- Adding descry field to struct spin lock, changed initialiser and spin_init function
Files
patch-spinlock.txt (52.6 KB) patch-spinlock.txt | dclink, 08/16/2014 03:03 PM |
I have looked at the patch, but it will not run with DEBUG_LOCKS in the kernel config. It gets stuck here right after entering the kernel from the loader, before the copyright messages and all. I guess it tries to kprintf() something at a point where kprintf() as such isn't usable yet. Have you tried it with DEBUG_LOCKS/DEBUG_LOCKS_LATENCY?
Furthermore, I've changed the following things in the patch:
The new patch is here -> http://leaf.dragonflybsd.org/~swildner/spinlock_descr.diff
hi , thanks for review and above all the fix. I ve tested only DEBUG_LOCK_LATENCY sorry for the inconveniency, i ll be more careful for next.
I have committed the bulk of your patch to master (http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ba87a4ab252df80acecfc25acfd9e406ea7f4c93), which is everything except the kprintf()s.
Do you want to submit a new patch for the kprintf()s? I am not 100% which make sense but right now there are two issues:
Thanks,
Sascha
No it is ok like this it was more for using new descry field than anything else so it is probably better like this,
Thanks.
David CARLIER
Thanks, pushed (ba87a4ab252df80acecfc25acfd9e406ea7f4c93)