]> git.baikalelectronics.ru Git - kernel.git/commit
aoe: support more AoE addresses with dynamic block device minor numbers
authorEd Cashin <ecashin@coraid.com>
Fri, 5 Oct 2012 00:16:40 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:28 +0000 (03:05 +0900)
commit294153b181c12f5059d52718ba02da836b9a485e
treefa46832f149cb30b1847bc6eee13e79ef9c0c444
parent27336a05753248e46b1c6a9d8c0b3ebc17f890b1
aoe: support more AoE addresses with dynamic block device minor numbers

The ATA over Ethernet protocol uses a major (shelf) and minor (slot)
address to identify a particular storage target.  These changes remove an
artificial limitation the aoe driver imposes on the use of AoE addresses.
For example, without these changes, the slot address has a maximum of 15,
but users commonly use slot numbers much greater than that.

The AoE shelf and slot address space is often used sparsely.  Instead of
using a static mapping between AoE addresses and the block device minor
number, the block device minor numbers are now allocated on demand.

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