[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5c43c41de4bdfd2412d5f2feadffc309243ed134.camel@sipsolutions.net>
Date: Mon, 19 Jul 2021 08:30:26 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
linux-wireless@...r.kernel.org
Cc: tony0620emma@...il.com, kvalo@...eaurora.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Neo Jou <neojou@...il.com>,
Jernej Skrabec <jernej.skrabec@...il.com>
Subject: Re: [PATCH RFC v1 1/7] mac80211: Add stations iterator where the
iterator function may sleep
>
> +/**
> + * ieee80211_iterate_stations_atomic - iterate stations
Copy/paste issue, as PK pointed out too.
> + *
> + * This function iterates over all stations associated with a given
> + * hardware that are currently uploaded to the driver and calls the callback
> + * function for them.
> + * This function allows the iterator function to sleep, when the iterator
> + * function is atomic @ieee80211_iterate_stations_atomic can be used.
>
I have no real objections to this, but I think you should carefully
document something like "the driver must not call this with a lock held
that it can also take in response to callbacks from mac80211, and it
must not call this within callbacks made by mac80211" or something like
that, because both of those things are going to cause deadlocks.
johannes
Powered by blists - more mailing lists