]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: disallow unsupported AoE minor addresses
authorEd Cashin <ecashin@coraid.com>
Fri, 7 Sep 2012 00:25:11 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:38 +0000 (15:36 +1000)
commit2365f69cedd6f176e551658a4a1890f2718c6a78
tree9ad0598411c67aca6e156d0f4989d461aed3066e
parenta4fafbf7b82e32f660e0a81d945557e7e7f13c98
aoe: disallow unsupported AoE minor addresses

A guard is inserted to prevent AoE minor addresses (slot addresses) higher
than 15 to be used, as they are not yet supported by the driver.

There is a change coming that will allow the aoe driver to overcome this
limit by using system device minor numbers dynamically, but until then,
this guard prevents unexpected targets from being used by the driver when
AoE targets with high minor numbers are on the AoE network.

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