Commit dd9a0752 authored by Thomas Gleixner's avatar Thomas Gleixner

Merge branch 'rt/net' into rt/base

parents de93d7b1 f9bef36b
...@@ -242,7 +242,7 @@ static __init void rt_hash_lock_init(void) ...@@ -242,7 +242,7 @@ static __init void rt_hash_lock_init(void)
spin_lock_init(&rt_hash_locks[i]); spin_lock_init(&rt_hash_locks[i]);
} }
#else #else
# define rt_hash_lock_addr(slot) NULL # define rt_hash_lock_addr(slot) ((spinlock_t *)NULL)
static inline void rt_hash_lock_init(void) static inline void rt_hash_lock_init(void)
{ {
......
...@@ -1365,11 +1365,11 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, ...@@ -1365,11 +1365,11 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
(len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) && (len > sysctl_tcp_dma_copybreak) && !(flags & MSG_PEEK) &&
!sysctl_tcp_low_latency && !sysctl_tcp_low_latency &&
dma_find_channel(DMA_MEMCPY)) { dma_find_channel(DMA_MEMCPY)) {
preempt_enable_no_resched(); preempt_enable();
tp->ucopy.pinned_list = tp->ucopy.pinned_list =
dma_pin_iovec_pages(msg->msg_iov, len); dma_pin_iovec_pages(msg->msg_iov, len);
} else { } else {
preempt_enable_no_resched(); preempt_enable();
} }
} }
#endif #endif
......
...@@ -1453,6 +1453,7 @@ struct tsap_cb *irttp_dup(struct tsap_cb *orig, void *instance) ...@@ -1453,6 +1453,7 @@ struct tsap_cb *irttp_dup(struct tsap_cb *orig, void *instance)
} }
/* Dup */ /* Dup */
memcpy(new, orig, sizeof(struct tsap_cb)); memcpy(new, orig, sizeof(struct tsap_cb));
spin_lock_init(&new->lock);
/* We don't need the old instance any more */ /* We don't need the old instance any more */
spin_unlock_irqrestore(&irttp->tsaps->hb_spinlock, flags); spin_unlock_irqrestore(&irttp->tsaps->hb_spinlock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment