Thread (5 messages) 5 messages, 2 authors, 2018-01-22

Re: [PATCH v3 3/5] mac80211_hwsim: add generation count for netlink dump operation

From: Benjamin Beichler <hidden>
Date: 2018-01-15 14:28:37

Am 15.01.2018 um 13:08 schrieb Johannes Berg:
On Wed, 2018-01-10 at 17:42 +0100, Benjamin Beichler wrote:
quoted
 Change the dump iteration to be independent from
increasing radio indices on radio list.
You can't do that, data structures can be deleted while the dump is
ongoing.
That's what I try to address with this patch. In the past there were
corner cases, which might have failed while deletion.

Nonetheless, the radio count is in the current version strictly
monotonic, maybe the description is misleading. :-)
So in the inner loop there is no deletion possible because of the
spinlock, and multiple calls of nl=5Fdump check the generation count and
cancel if it have changed.
johannes
-- 
M.Sc. Benjamin Beichler

Universit=C3=A4t Rostock, Fakult=C3=A4t f=C3=BCr Informatik und Elektrotechnik
Institut f=C3=BCr Angewandte Mikroelektronik und Datentechnik

University of Rostock, Department of CS and EE
Institute of Applied Microelectronics and CE

Richard-Wagner-Stra=C3=9Fe 31
18119 Rostock
Deutschland/Germany

phone: +49 (0) 381 498 - 7278
email: Benjamin.Beichler@uni-rostock.de
www: http://www.imd.uni-rostock.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help