Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20376
b: refs/heads/master
c: 142e301
h: refs/heads/master
v: v3
  • Loading branch information
Mike Christie authored and unknown committed Feb 4, 2006
1 parent b2cb019 commit f095bf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 5b940adf5b341b12dbb94e7cbdb416b35f52017b
refs/heads/master: 142e301fc818de9b116706835cd9fc864e73f203
13 changes: 6 additions & 7 deletions trunk/drivers/scsi/scsi_transport_iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,20 +530,19 @@ mempool_zone_init(unsigned max, unsigned size, unsigned hiwat)
if (!zp)
return NULL;

zp->size = size;
zp->hiwat = hiwat;
INIT_LIST_HEAD(&zp->freequeue);
spin_lock_init(&zp->freelock);
atomic_set(&zp->allocated, 0);

zp->pool = mempool_create(max, mempool_zone_alloc_skb,
mempool_zone_free_skb, zp);
if (!zp->pool) {
kfree(zp);
return NULL;
}

zp->size = size;
zp->hiwat = hiwat;

INIT_LIST_HEAD(&zp->freequeue);
spin_lock_init(&zp->freelock);
atomic_set(&zp->allocated, 0);

return zp;
}

Expand Down

0 comments on commit f095bf7

Please sign in to comment.