Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Sterba and committed by
Linus Torvalds
0f38c47a bee9c7c0

+2 -2
+2 -2
drivers/char/pcmcia/ipwireless/hardware.c
··· 563 563 if (!list_empty(&hw->rx_pool)) { 564 564 packet = list_first_entry(&hw->rx_pool, 565 565 struct ipw_rx_packet, queue); 566 - list_del(&packet->queue); 567 566 hw->rx_pool_size--; 568 567 spin_unlock_irqrestore(&hw->lock, flags); 568 + list_del(&packet->queue); 569 569 } else { 570 570 static int min_capacity = 256; 571 571 int new_capacity; ··· 610 610 kfree(packet); 611 611 else { 612 612 hw->rx_pool_size++; 613 - list_add_tail(&packet->queue, &hw->rx_pool); 613 + list_add(&packet->queue, &hw->rx_pool); 614 614 } 615 615 } 616 616