OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Phonet: use atomic for packet TX window
[uclinux-h8/linux.git]
/
net
/
phonet
/
socket.c
diff --git
a/net/phonet/socket.c
b/net/phonet/socket.c
index
c75aa5c
..
ada2a35
100644
(file)
--- a/
net/phonet/socket.c
+++ b/
net/phonet/socket.c
@@
-227,7
+227,7
@@
static unsigned int pn_socket_poll(struct file *file, struct socket *sock,
if (!mask && sk->sk_state == TCP_CLOSE_WAIT)
return POLLHUP;
- if (sk->sk_state == TCP_ESTABLISHED &&
pn->tx_credits
)
+ if (sk->sk_state == TCP_ESTABLISHED &&
atomic_read(&pn->tx_credits)
)
mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
return mask;