From: Artem Bityutskiy <dedekind@yandex.ru>
To: David Miller <davem@davemloft.net>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: bad example in Documentation/atomic_ops.txt ?
Date: Fri, 23 May 2008 18:01:43 +0300 [thread overview]
Message-ID: <4836DC57.1020101@yandex.ru> (raw)
Hi,
I it looks like the example in the Documentation/atomic_ops.txt
file at line 232 is not quite right. The obj->active = 0 will
be delayed, but not further than spin_unlock() in obj_timeout().
Becaus spin_unlock() has a memory barrier.
I guess you would need to move spin_lock(&global_list_lock) to
obj_list_del() to make the example valid.
This confused me when I read the file.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
next reply other threads:[~2008-05-23 15:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 15:01 Artem Bityutskiy [this message]
2008-05-28 5:28 ` bad example in Documentation/atomic_ops.txt ? Artem Bityutskiy
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=4836DC57.1020101@yandex.ru \
--to=dedekind@yandex.ru \
--cc=buytenh@wantstofly.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.