]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
aoe: disallow unsupported AoE minor addresses
authorEd Cashin <ecashin@coraid.com>
Thu, 13 Sep 2012 01:01:35 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 07:28:21 +0000 (17:28 +1000)
commit4b43b2b997687af83c407efb0cd84da34fd86b94
tree4248ff45a7f0dd1998a64b2ecfb3f148a37e51e7
parente91072c26aea255bb9bedc0f63cfc45e5e52f52e
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