diff options
author | Jesse Gross <jesse@nicira.com> | 2011-05-27 15:57:28 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2011-05-27 16:37:34 -0700 |
commit | df2fa9b50e1c0e93c6be1d31a5d69eb4f077add3 (patch) | |
tree | 4f3681b219227f716188b51c839f65b0b81ee9c4 /ovsdb | |
parent | 01b389b1109fc667c37c1ace3bded423d9f38637 (diff) |
datapath: Don't call genlmsg_reply() under rcu_read_lock().
genlmsg_reply() indirectly makes a call to kmalloc but takes no
GFP flags, instead using GFP_ATOMIC if in a softirq and GFP_KERNEL
otherwise. However, here we hold rcu_read_lock(), which requires
GFP_ATOMIC but is not a softirq. Since we've already built the
reply message, it is safe to release rcu_read_lock(), so do that
before calling genlmsg_reply().
Signed-off-by: Jesse Gross <jesse@nicira.com>
CC: Hao Zheng <hzheng@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ovsdb')
0 files changed, 0 insertions, 0 deletions