Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1302205
| From | Davidlohr Bueso <dave@stgolabs.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key() |
| Date | 2016-01-05 22:20 +0100 |
| Message-ID | <qNHbk-8sH-23@gated-at.bofh.it> (permalink) |
| References | <qNGoW-7Sr-19@gated-at.bofh.it> <qNGyD-7WD-37@gated-at.bofh.it> <qNGIj-81C-51@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 05 Jan 2016, Bueso wrote:
>On Tue, 05 Jan 2016, Peter Zijlstra wrote:
>
>>On Tue, Jan 05, 2016 at 12:23:55PM -0800, Davidlohr Bueso wrote:
>>>+ if (unlikely(!mapping)) {
>>>+ int shmem_swizzled;
>>>+
>>>+ /*
>>>+ * Page lock is required to identify which special case above
>>>+ * applies. If this is really a shmem page then the page lock
>>>+ * will prevent unexpected transitions.
>>>+ */
>>>+ lock_page(page);
>>>+ shmem_swizzled = PageSwapCache(page);
>>> unlock_page(page);
>>> put_page(page);
>>>+ WARN_ON_ONCE(mapping);
>>
>>We've not re-loaded mapping, so how could this possibly be?
>
>Yep, this wants to be page->mapping.
Actually under compound_head() afaict, along with the rest of the page->mapping
loads.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key() Davidlohr Bueso <dave@stgolabs.net> - 2016-01-05 21:30 +0100
Re: [PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key() Peter Zijlstra <peterz@infradead.org> - 2016-01-05 21:40 +0100
Re: [PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key() Davidlohr Bueso <dave@stgolabs.net> - 2016-01-05 21:50 +0100
Re: [PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key() Davidlohr Bueso <dave@stgolabs.net> - 2016-01-05 22:20 +0100
csiph-web