Skip to contentSkip to conversation

fix delay on mount and umount

PATCH In review Fred Isaman 3 participants 5 messages Jun 17, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover fix delay on mount and umount

This fixes the delay issues we've been having.

#1 lore raw

PATCH 1/1 net: fix deliver_no_wcard regression on loopback device

From: John Fastabend <[email protected]>

deliver_no_wcard is not being set in skb_copy_header. In the skb_cloned case it is not being cleared and may cause the skb to be dropped when the loopback device pushes it back up the stack.

---
 net/core/skbuff.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/core/skbuff.c +1 -0
index 9f07e74..bcf2fa3 100644
@@ -532,6 +532,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
 	new->ip_summed		= old->ip_summed;
 	skb_copy_queue_mapping(new, old);
 	new->priority		= old->priority;
+	new->deliver_no_wcard	= old->deliver_no_wcard;
 #if defined(CONFIG_IP_VS) || defined(CONFIG_IP_VS_MODULE)
 	new->ipvs_property	= old->ipvs_property;
 #endif
Signature · 1 line
1.6.6.1
#2 lore raw

Re: [PATCH 1/1] net: fix deliver_no_wcard regression on loopback device

Took in at pnfs-all-2.6.35-rc3-2010-06-17

Thanks!

Benny

Quoted 24 lines · Fred Isaman

From: John Fastabend <[email protected]>

deliver_no_wcard is not being set in skb_copy_header. In the skb_cloned case it is not being cleared and may cause the skb to be dropped when the loopback device pushes it back up the stack.

---
 net/core/skbuff.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/core/skbuff.c +1 -0
index 9f07e74..bcf2fa3 100644
@@ -532,6 +532,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
 	new->ip_summed		= old->ip_summed;
 	skb_copy_queue_mapping(new, old);
 	new->priority		= old->priority;
+	new->deliver_no_wcard	= old->deliver_no_wcard;
 #if defined(CONFIG_IP_VS) || defined(CONFIG_IP_VS_MODULE)
 	new->ipvs_property	= old->ipvs_property;
 #endif
#3 lore raw
In reply to Fred Isaman
Quoted 1 line · Fred Isaman

This fixes the delay issues we've been having.

What kind of delays are we talking about and since which kernel version? With 2.6.32 it takes several minutes to umount a 100 NFSv4 shares. Mounting them is much faster but not instant.

Probably will end up using the automounter anyway, but it's nice to know if this fixes the issue.

Signature · 3 lines
Timo Aaltonen
Systems Specialist
Aalto University IT
#4 lore raw
Quoted 11 lines · Timo Aaltonen
Quoted 1 line · Fred Isaman

This fixes the delay issues we've been having.

What kind of delays are we talking about and since which kernel version? With 2.6.32 it takes several minutes to umount a 100 NFSv4 shares. Mounting them is much faster but not instant.

Probably will end up using the automounter anyway, but it's nice to know if this fixes the issue.

Sorry, I should have been more specific. This fixes a regression that occurred between 2.6.35-rc2 and 2.6.35-rc3.
Mounts would hang for approx 2 minutes.

Fred

Quoted 9 lines

--
Timo Aaltonen
Systems Specialist
Aalto University IT
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html