]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: manipulate aoedev network stats under lock
authorEd Cashin <ecashin@coraid.com>
Thu, 29 Nov 2012 03:19:07 +0000 (14:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:52 +0000 (16:23 +1100)
commitfb0cb24a004ac4015ecd1ad7d279830dcec55e60
treea505c4e7f218c4aecc95d770484af8ac1606fabf
parent969013738ff44be991ed4519fafa3f44eddd01d9
aoe: manipulate aoedev network stats under lock

With this bugfix in place the calculation of the criterion for "lateness"
is performed under lock.  Without the lock, there is a chance that one of
the non-atomic operations performed on the round trip time statistics
could be incomplete, such that an incorrect lateness criterion would be
calculated.

Without this change, the effect of the bug would be rare unecessary but
benign retransmissions.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/aoe/aoecmd.c