Re: [PATCH bluetooth-next 4/4] mac802154: use atomic ops for sequence incrementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 22/05/15 14:12, Alexander Aring wrote:
On Fri, May 22, 2015 at 12:34:19PM +0200, Marc Kleine-Budde wrote:
On 05/22/2015 12:30 PM, Stefan Schmidt wrote:
Hello.

On 22/05/15 10:59, Marc Kleine-Budde wrote:
On 05/22/2015 10:57 AM, Alexander Aring wrote:
This patch will use atomic operations for sequence number incrementation
while MAC header generation. Upper layers like af_802154 or 6LoWPAN
could call this function in a parallel context while generating 802.15.4
MAC header before queuing into wpan interfaces transmit queue.
what about swapping patch 3 and 4?
To avoid having problems during a git bisect later one? E.g. having the
lock removed but no atomic in place?
Yes, that's what I was thinking about. I don't know the code to tell if
this is an issue here.

The problem is more difficult because the dsn incrementation which I do
atomic now had never a locking mechanism. So this was always not working
correctly. Somebody need to scream now "hey fix that in net, not next".

Hey, fix that in net not next! :P

If we know it causes problems in current net we should indeed try to submit it there. Given it is only a few lines it might be worth the effort even now. Some people might be using kernel releases for their work and thus they could get this fix one release (3 months) earlier.

I do at the moment only critical things fixed in net, like [0].

Sure, these are the most important ones. I leave it to you to decide if you think this one is worth the extra effort.

But we should swap it because I first wrote some "TODO we should use
atomic here" and then later I decide to implement this TODO. At the end
this results in some cherry-pick orgy and I did not change it.

ok, cool.

regards
Stefan Schmidt
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux