summaryrefslogtreecommitdiff
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorFelix Blyakher <felixb@sgi.com>2009-02-18 15:35:05 -0600
committerFelix Blyakher <felixb@sgi.com>2009-02-18 15:35:05 -0600
commit01234f3c87fff1d83adef8a70fdc18f27d67d75c (patch)
tree95a24fe0b257404ca1ee01faee7e2201e3632b9f /include/net/sock.h
parent8aa4349ad527db56724b1ab9478db65a8065e0bb (diff)
parent5955c7a2cfb6a35429adea5dc480002b15ca8cfc (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 5a3a151bd730..ce3b5b622683 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1308,7 +1308,7 @@ static inline int sock_writeable(const struct sock *sk)
static inline gfp_t gfp_any(void)
{
- return in_atomic() ? GFP_ATOMIC : GFP_KERNEL;
+ return in_softirq() ? GFP_ATOMIC : GFP_KERNEL;
}
static inline long sock_rcvtimeo(const struct sock *sk, int noblock)