]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
aoe: disallow unsupported AoE minor addresses
authorEd Cashin <ecashin@coraid.com>
Fri, 28 Sep 2012 00:22:24 +0000 (10:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:51:04 +0000 (16:51 +1000)
commit9a2eb576f8c76de377b20abb644f2d37072c6541
tree8de05771075a1ae679744cd425f2da564f00faee
parent9b6bedb1a505e5feb3a99bfcbc2c1d5ca259f2cd
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