Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Ed Cashin
On Oct 2, 2012, at 5:12 PM, Andrew Morton wrote: ... >> +static int >> +minor_get(ulong *minor) >> { >> -struct aoedev *d; >> ulong flags; >> +ulong n; >> +int error = 0; >> + >> +spin_lock_irqsave(_minors_lock, flags); >> +n = find_first_zero_bit(used_minors, N_DEVS); >>

Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Andrew Morton
On Mon, 1 Oct 2012 18:59:12 -0700 Ed Cashin wrote: > 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

Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Ed Cashin
I should have mentioned that these seven patches were made for linux-next/akpm, which contains the last 14-patch series for aoe. On Oct 1, 2012, at 9:59 PM, "Ed Cashin" wrote: > The ATA over Ethernet protocol uses a major (shelf) and > minor (slot) address to identify a particular storage

Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Ed Cashin
I should have mentioned that these seven patches were made for linux-next/akpm, which contains the last 14-patch series for aoe. On Oct 1, 2012, at 9:59 PM, Ed Cashin ecas...@coraid.com wrote: The ATA over Ethernet protocol uses a major (shelf) and minor (slot) address to identify a

Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Andrew Morton
On Mon, 1 Oct 2012 18:59:12 -0700 Ed Cashin ecas...@coraid.com wrote: 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

Re: [PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-02 Thread Ed Cashin
On Oct 2, 2012, at 5:12 PM, Andrew Morton wrote: ... +static int +minor_get(ulong *minor) { -struct aoedev *d; ulong flags; +ulong n; +int error = 0; + +spin_lock_irqsave(used_minors_lock, flags); +n = find_first_zero_bit(used_minors, N_DEVS); +if (n

[PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-01 Thread Ed Cashin
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

[PATCH 1/7] aoe: support more AoE addresses with dynamic block device minor numbers

2012-10-01 Thread Ed Cashin
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