Print this page
re #13613 rb4516 Tunables needs volatile keyword

*** 20,29 **** --- 20,32 ---- */ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ + /* + * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + */ /* * IP interface to squeues. * * IP uses squeues to force serialization of packets, both incoming and
*** 145,155 **** /* * ip_squeue_worker_wait: global value for the sq_wait field for all squeues * created. This is the time squeue code waits before waking up the worker * thread after queuing a request. */ ! uint_t ip_squeue_worker_wait = 10; static squeue_t *ip_squeue_create(pri_t); static squeue_set_t *ip_squeue_set_create(processorid_t); static int ip_squeue_cpu_setup(cpu_setup_t, int, void *); static void ip_squeue_set_move(squeue_t *, squeue_set_t *); --- 148,158 ---- /* * ip_squeue_worker_wait: global value for the sq_wait field for all squeues * created. This is the time squeue code waits before waking up the worker * thread after queuing a request. */ ! volatile uint_t ip_squeue_worker_wait = 10; static squeue_t *ip_squeue_create(pri_t); static squeue_set_t *ip_squeue_set_create(processorid_t); static int ip_squeue_cpu_setup(cpu_setup_t, int, void *); static void ip_squeue_set_move(squeue_t *, squeue_set_t *);