From: Sergey Vlasov <vsu@altlinux.ru> To: gosha <embedded@nm.ru>, ALT Linux kernel packages development <devel-kernel@lists.altlinux.org> Subject: Re: [d-kernel] info [немного недопонял, - В kernel 2.6.16 теперь ждущие блокировки spinlock() не работают?] Date: Sat, 17 Jun 2006 20:31:22 +0400 Message-ID: <20060617163122.GB14563@procyon.home> (raw) In-Reply-To: <547194163.20060617103658@nm.ru> [-- Attachment #1: Type: text/plain, Size: 899 bytes --] On Sat, Jun 17, 2006 at 10:36:58AM +0000, gosha wrote: > Проблема с kernel 2.6.16.18/20.- Пробовал пересобрать (портировать) kernel 2.6.16.18: > static spinlock_t lock; > spin_lock_init(&lock); > for(ir=0;ir<128;ir++) > {spin_lock(&lock); > printk("%s %s %d spinlock=%ld,%p\r\n", __FILE__, __FUNCTION__, __LINE__, ir, lock.raw_lock); > } > так она ни на одном мутексе не останавливается... Значит, этот тест был выполнен на ядре *-up, где spin_lock() действительно ничего не делает. Spinlock используются только на SMP для синхронизации между несколькими процессорами. Код, пытающийся рекурсивно захватить один и тот же spinlock на одном процессоре, недопустим - это гарантированный deadlock. > И в include/linux/spinlock*.h ничего похожего на разблокировку/ блокировку .... Все реализации spinlock архитектурно-зависимые, и поэтому лежат в include/asm-*. [-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
prev parent reply other threads:[~2006-06-17 16:31 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-06-17 10:36 gosha 2006-06-17 16:31 ` Sergey Vlasov [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20060617163122.GB14563@procyon.home \ --to=vsu@altlinux.ru \ --cc=devel-kernel@lists.altlinux.org \ --cc=embedded@nm.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux kernel packages development This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \ devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com public-inbox-index devel-kernel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git