datapath: Disable preemption updating per-CPU data in dp_dev_recv().
authorBen Pfaff <blp@nicira.com>
Wed, 13 Jan 2010 18:43:31 +0000 (10:43 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Jan 2010 18:43:31 +0000 (10:43 -0800)
commit81eec36e0200a149f7e239b717cdf93378f6107a
tree609387dab64904495c88531e8eed4b2db44c0c4d
parent78f172aa4ea3acd28085a457059ad82ba2f2c79a
datapath: Disable preemption updating per-CPU data in dp_dev_recv().

dp_dev_recv() is called from do_output(), which can be called from
execute_actions(), which can be called from process context with
preemption enabled, so it needs to disabled preemption before it can
access per-CPU data.

Build tested on a few different kernels.

Bug #2316.

Reported-by: John Galgay <john@galgay.net>
CC: Dan Wendlandt <dan@nicira.com>
datapath/dp_dev.c