From c2ce69d78e54b37e68a97f7034a94dcacfc1f02c Mon Sep 17 00:00:00 2001 From: Ed Cashin Date: Mon, 17 Dec 2012 16:03:29 -0800 Subject: [PATCH] --- yaml --- r: 346467 b: refs/heads/master c: 1b8a1636ceea573b1d452a1cccf01c990d8d628a h: refs/heads/master i: 346465: 38984d066102d1d8acc368e33211a71f2f503d30 346463: 8639cda13a76ff0e8f249bd30f3c5ebe74701e5c v: v3 --- [refs] | 2 +- trunk/drivers/block/aoe/aoe.h | 6 +++--- trunk/drivers/block/aoe/aoecmd.c | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index c9df575d173b..300e8b974f25 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4e78dd144b865162626f811d1097b6d181ec6a31 +refs/heads/master: 1b8a1636ceea573b1d452a1cccf01c990d8d628a diff --git a/trunk/drivers/block/aoe/aoe.h b/trunk/drivers/block/aoe/aoe.h index d2ed7f18d1ac..52f75c097242 100644 --- a/trunk/drivers/block/aoe/aoe.h +++ b/trunk/drivers/block/aoe/aoe.h @@ -122,14 +122,14 @@ struct aoeif { struct aoetgt { unsigned char addr[6]; - ushort nframes; + ushort nframes; /* cap on frames to use */ struct aoedev *d; /* parent device I belong to */ struct list_head ffree; /* list of free frames */ struct aoeif ifs[NAOEIFS]; struct aoeif *ifp; /* current aoeif in use */ ushort nout; - ushort maxout; - ulong falloc; + ushort maxout; /* current value for max outstanding */ + ulong falloc; /* number of allocated frames */ ulong lastwadj; /* last window adjustment */ int minbcnt; int wpkts, rpkts; diff --git a/trunk/drivers/block/aoe/aoecmd.c b/trunk/drivers/block/aoe/aoecmd.c index 9fe4f1865558..a6e95e69296c 100644 --- a/trunk/drivers/block/aoe/aoecmd.c +++ b/trunk/drivers/block/aoe/aoecmd.c @@ -1373,7 +1373,11 @@ aoecmd_cfg_rsp(struct sk_buff *skb) spin_lock_irqsave(&d->lock, flags); t = gettgt(d, h->src); - if (!t) { + if (t) { + t->nframes = n; + if (n < t->maxout) + t->maxout = n; + } else { t = addtgt(d, h->src, n); if (!t) goto bail;