Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346489
b: refs/heads/master
c: bbb44e3
h: refs/heads/master
i:
  346487: cc392d8
v: v3
  • Loading branch information
Ed Cashin authored and Linus Torvalds committed Dec 18, 2012
1 parent 5e2c14c commit 1578034
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 122 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b91316f2b7bc0b1d128a9890a2a4895f7e1c74fc
refs/heads/master: bbb44e30d07fdc111e34a5ec935b57521cea9499
11 changes: 10 additions & 1 deletion trunk/drivers/block/aoe/aoe.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ enum {
RTTDSCALE = 3,
RTTAVG_INIT = USEC_PER_SEC / 4 << RTTSCALE,
RTTDEV_INIT = RTTAVG_INIT / 4,

HARD_SCORN_SECS = 10, /* try another remote port after this */
MAX_TAINT = 1000, /* cap on aoetgt taint */
};

struct buf {
Expand All @@ -103,6 +106,10 @@ struct buf {
struct request *rq;
};

enum frame_flags {
FFL_PROBE = 1,
};

struct frame {
struct list_head head;
u32 tag;
Expand All @@ -118,6 +125,7 @@ struct frame {
struct bio_vec *bv;
ulong bcnt;
ulong bv_off;
char flags;
};

struct aoeif {
Expand All @@ -138,8 +146,10 @@ struct aoetgt {
ushort next_cwnd; /* incr maxout after decrementing to zero */
ushort ssthresh; /* slow start threshold */
ulong falloc; /* number of allocated frames */
int taint; /* how much we want to avoid this aoetgt */
int minbcnt;
int wpkts, rpkts;
char nout_probes;
};

struct aoedev {
Expand Down Expand Up @@ -174,7 +184,6 @@ struct aoedev {
struct list_head rexmitq; /* deferred retransmissions */
struct aoetgt *targets[NTARGETS];
struct aoetgt **tgt; /* target in use when working */
struct aoetgt *htgt; /* target needing rexmit assistance */
ulong ntargets;
ulong kicked;
char ident[512];
Expand Down
Loading

0 comments on commit 1578034

Please sign in to comment.