diff options
author | David Sterba <dsterba@suse.cz> | 2008-07-28 16:53:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 08:28:03 -0700 |
commit | 0f38c47a545d36da4038fec0708e6e3fbdb160b1 (patch) | |
tree | 3fbf042d7d3c2607e757d417f8a7c10c19901302 /drivers/char/pcmcia | |
parent | bee9c7c0773517c9f1d7931144fc8dec12233bd7 (diff) | |
download | linux-3.10-0f38c47a545d36da4038fec0708e6e3fbdb160b1.tar.gz linux-3.10-0f38c47a545d36da4038fec0708e6e3fbdb160b1.tar.bz2 linux-3.10-0f38c47a545d36da4038fec0708e6e3fbdb160b1.zip |
ipwireless: Put packets to pool start
ipwireless: Put packets to pool start
Put packets to pool start, try to reuse cached memory.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/hardware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/pcmcia/ipwireless/hardware.c b/drivers/char/pcmcia/ipwireless/hardware.c index 814ea3228ca..d1e69de1915 100644 --- a/drivers/char/pcmcia/ipwireless/hardware.c +++ b/drivers/char/pcmcia/ipwireless/hardware.c @@ -563,9 +563,9 @@ static struct ipw_rx_packet *pool_allocate(struct ipw_hardware *hw, if (!list_empty(&hw->rx_pool)) { packet = list_first_entry(&hw->rx_pool, struct ipw_rx_packet, queue); - list_del(&packet->queue); hw->rx_pool_size--; spin_unlock_irqrestore(&hw->lock, flags); + list_del(&packet->queue); } else { static int min_capacity = 256; int new_capacity; @@ -610,7 +610,7 @@ static void pool_free(struct ipw_hardware *hw, struct ipw_rx_packet *packet) kfree(packet); else { hw->rx_pool_size++; - list_add_tail(&packet->queue, &hw->rx_pool); + list_add(&packet->queue, &hw->rx_pool); } } |