Skip to contentSkip to conversation

xen-netback: remove dead code

PATCH In review Wei Liu 3 participants 9 messages May 6, 2013 – May 7, 2013

Subsystems (3)
lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 xen-netback: remove dead code

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

---
 drivers/net/xen-netback/netback.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/net/xen-netback/netback.c +0 -4
index 37984e6..295a9c2 100644
@@ -1939,10 +1939,6 @@ static int __init netback_init(void)
 failed_init:
 	while (--group >= 0) {
 		struct xen_netbk *netbk = &xen_netbk[group];
-		for (i = 0; i < MAX_PENDING_REQS; i++) {
-			if (netbk->mmap_pages[i])
-				__free_page(netbk->mmap_pages[i]);
-		}
 		del_timer(&netbk->net_timer);
 		kthread_stop(netbk->task);
 	}
Signature · 1 line
1.7.10.4
author
#1 lore raw
Quoted 3 lines · Wei Liu

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

This patch targets net-next.

Thanks
Wei.

author
#2 lore raw
In reply to Wei Liu
Quoted 3 lines · Wei Liu

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

This patch targets net-next.

Thanks
Wei.

author
#5 lore raw
Quoted 4 lines · David Miller

From: Wei Liu <[email protected]>
Date: Mon, 6 May 2013 17:10:33 +0100

Quoted 1 line · Wei Liu
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

This patch targets net-next.

http://marc.info/?l=linux-netdev&m=136730964130303&w=2
--

Got it.

Wei.

Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#6 lore raw
In reply to David Miller
Quoted 4 lines · David Miller

From: Wei Liu <[email protected]>
Date: Mon, 6 May 2013 17:10:33 +0100

Quoted 1 line · Wei Liu
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

This patch targets net-next.

http://marc.info/?l=linux-netdev&m=136730964130303&w=2
--

Got it.

Wei.

Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 1/1
#7 lore raw
In reply to Wei Liu
Quoted 2 lines · Wei Liu

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

^not

Can you add a quick note about to the changelog about where this array is now initialised and freed please, with that:

Quoted 1 line

Please resubmit when Dave opens net-next for new development.

Ian.

Quoted 19 lines
---
 drivers/net/xen-netback/netback.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/net/xen-netback/netback.c +0 -4
index 37984e6..295a9c2 100644
@@ -1939,10 +1939,6 @@ static int __init netback_init(void)
 failed_init:
 	while (--group >= 0) {
 		struct xen_netbk *netbk = &xen_netbk[group];
-		for (i = 0; i < MAX_PENDING_REQS; i++) {
-			if (netbk->mmap_pages[i])
-				__free_page(netbk->mmap_pages[i]);
-		}
 		del_timer(&netbk->net_timer);
 		kthread_stop(netbk->task);
 	}
Acked-by on v1 1/1
#8 lore raw
In reply to Wei Liu
Quoted 2 lines · Wei Liu

The array mmap_pages is never touched in the initialization function. This is remnant of mapping mechanism, which does exist upstream.

^not

Can you add a quick note about to the changelog about where this array is now initialised and freed please, with that:

Quoted 1 line

Please resubmit when Dave opens net-next for new development.

Ian.

Quoted 19 lines
---
 drivers/net/xen-netback/netback.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/net/xen-netback/netback.c +0 -4
index 37984e6..295a9c2 100644
@@ -1939,10 +1939,6 @@ static int __init netback_init(void)
 failed_init:
 	while (--group >= 0) {
 		struct xen_netbk *netbk = &xen_netbk[group];
-		for (i = 0; i < MAX_PENDING_REQS; i++) {
-			if (netbk->mmap_pages[i])
-				__free_page(netbk->mmap_pages[i]);
-		}
 		del_timer(&netbk->net_timer);
 		kthread_stop(netbk->task);
 	}