Commit:     6b9699bbd24e82d2ec3bb5a43100099a936ded04
Parent:     9bb237b6a670fa7a6af3adc65231b1f6fda44510
Author:     Ed L. Cashin <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 8 04:20:06 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 09:22:32 2008 -0800

    aoe: only install new AoE device once
    An aoe driver user who had about 70 AoE targets found that he was hitting a
    BUG in sysfs_create_file because the aoe driver was trying to tell the 
    about an AoE device more than once.  Each AoE device was reachable by 
    local network interfaces, and multiple ATA device indentify responses were
    returning from that single device.
    This patch eliminates a race condition so that aoe always informs the block
    layer of a new AoE device once in the presence of multiple incoming ATA 
    identify responses.
    Signed-off-by: Ed L. Cashin <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/block/aoe/aoecmd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index b49e06e..7a96183 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -698,6 +698,8 @@ ataid_complete(struct aoedev *d, struct aoetgt *t, unsigned 
char *id)
                        d->fw_ver, (long long)ssize);
        d->ssize = ssize;
        d->geo.start = 0;
+       if (d->flags & (DEVFL_GDALLOC|DEVFL_NEWSIZE))
+               return;
        if (d->gd != NULL) {
                d->gd->capacity = ssize;
                d->flags |= DEVFL_NEWSIZE;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to