]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
aoe: disallow unsupported AoE minor addresses
authorEd Cashin <ecashin@coraid.com>
Wed, 26 Sep 2012 01:35:02 +0000 (11:35 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:29:05 +0000 (17:29 +1000)
commit95feaaa3ba7341593ecc23deb403487cf31619c7
tree92fd034b0798035615849baa8bbfda8164494398
parented7939be5c7cfdd6135ea1c677409d4c917fc585
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