]> git.baikalelectronics.ru Git - kernel.git/commit
aoe: manipulate aoedev network stats under lock
authorEd Cashin <ecashin@coraid.com>
Tue, 18 Dec 2012 00:03:47 +0000 (16:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:24 +0000 (17:15 -0800)
commit9cfda59021940a8c69595125552b40b21441fccf
tree53e9ad45f578f0eed1a64309e825afc8d576ae29
parent73201c13b2230337e05e304d861b701e6a99dffb
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoecmd.c