main() { int pid; /* ... Get the process ID of this program. */ getpid(pid); /* ... Check to see if this program is active. */ printf("R = %d\n", kill (pid, 0)); } ipt>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2017-02-06 10:14:31 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-07 12:50:43 -0500
commitbd4ce941c8d5b862b2f83364be5dbe8fc8ab48f8 (patch)
tree8ea7e9d7ea1bba5e9f98ed8fdb22a6d9b2e2c67f
parent69629464e0b587f3711739b3aa2bcdaf2e075276 (diff)
mlx4: Invoke softirqs after napi_reschedule
mlx4 may schedule napi from a workqueue. Afterwards, softirqs are not run in a deterministic time frame and the following message may be logged: NOHZ: local_softirq_pending 08 The problem is the same as what was described in commit ec13ee80145c ("virtio_net: invoke softirqs after __napi_schedule") and this patch applies the same fix to mlx4. Fixes: 07841f9d94c1 ("net/mlx4_en: Schedule napi when RX buffers allocation fails") Cc: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Benjamin Poirier <bpoirier@suse.com> Acked-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>