]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: kernel thread handles I/O completions for simple locking
authorEd Cashin <ecashin@coraid.com>
Fri, 7 Sep 2012 00:25:10 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:37 +0000 (15:36 +1000)
commitccb7c8eecb5a7906d38f1e65582441cc6312ab84
tree53e5dc62677ef72681d6ae71fa5496370fda215d
parentb765770b5bd0198907bf0a6f6db51417c651a53a
aoe: kernel thread handles I/O completions for simple locking

Make the frames the aoe driver uses to track the relationship between bios
and packets more flexible and detached, so that they can be passed to an
"aoe_ktio" thread for completion of I/O.

The frames are handled much like skbs, with a capped amount of
preallocation so that real-world use cases are likely to run smoothly and
degenerate gracefully even under memory pressure.

Decoupling I/O completion from the receive path and serializing it in a
process makes it easier to think about the correctness of the locking in
the driver, especially in the case of a remote MAC address becoming
unusable.

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