diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 79ca29ee1aee..448fd78777f9 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -530,6 +530,12 @@ mempool_zone_init(unsigned max, unsigned size, unsigned hiwat) | |||
530 | if (!zp) | 530 | if (!zp) |
531 | return NULL; | 531 | return NULL; |
532 | 532 | ||
533 | zp->size = size; | ||
534 | zp->hiwat = hiwat; | ||
535 | INIT_LIST_HEAD(&zp->freequeue); | ||
536 | spin_lock_init(&zp->freelock); | ||
537 | atomic_set(&zp->allocated, 0); | ||
538 | |||
533 | zp->pool = mempool_create(max, mempool_zone_alloc_skb, | 539 | zp->pool = mempool_create(max, mempool_zone_alloc_skb, |
534 | mempool_zone_free_skb, zp); | 540 | mempool_zone_free_skb, zp); |
535 | if (!zp->pool) { | 541 | if (!zp->pool) { |
@@ -537,13 +543,6 @@ mempool_zone_init(unsigned max, unsigned size, unsigned hiwat) | |||
537 | return NULL; | 543 | return NULL; |
538 | } | 544 | } |
539 | 545 | ||
540 | zp->size = size; | ||
541 | zp->hiwat = hiwat; | ||
542 | |||
543 | INIT_LIST_HEAD(&zp->freequeue); | ||
544 | spin_lock_init(&zp->freelock); | ||
545 | atomic_set(&zp->allocated, 0); | ||
546 | |||
547 | return zp; | 546 | return zp; |
548 | } | 547 | } |
549 | 548 | ||