Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271074
b: refs/heads/master
c: e17b4af
h: refs/heads/master
v: v3
  • Loading branch information
Vasu Dev authored and James Bottomley committed Oct 2, 2011
1 parent e63f44f commit ac168c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 49a198898e889038c6601288cd2b0e037edada24
refs/heads/master: e17b4af7c7a6f5c24b0e6b856bb45a1a22be75f5
11 changes: 5 additions & 6 deletions trunk/drivers/scsi/libfc/fc_exch.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ static struct workqueue_struct *fc_exch_workqueue;
* assigned range of exchanges to per cpu pool.
*/
struct fc_exch_pool {
spinlock_t lock;
struct list_head ex_list;
u16 next_index;
u16 total_exches;

/* two cache of free slot in exch array */
u16 left;
u16 right;

spinlock_t lock;
struct list_head ex_list;
};
} ____cacheline_aligned_in_smp;

/**
* struct fc_exch_mgr - The Exchange Manager (EM).
Expand All @@ -91,13 +90,13 @@ struct fc_exch_pool {
* It manages the allocation of exchange IDs.
*/
struct fc_exch_mgr {
struct fc_exch_pool *pool;
mempool_t *ep_pool;
enum fc_class class;
struct kref kref;
u16 min_xid;
u16 max_xid;
mempool_t *ep_pool;
u16 pool_max_index;
struct fc_exch_pool *pool;

/*
* currently exchange mgr stats are updated but not used.
Expand Down

0 comments on commit ac168c8

Please sign in to comment.