[Q] rcu_read_lock/unlock window size should be small always?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Quick question

the critical section between rcu_read_lock and rcu_read_unlock need to
be as small as possible like in case of local_irq_save()/restore or am
i at liberty to have a large critical section with rcu lock?

e.g

rcu_read_lock()
...
/* some code here */
...
rcu_read_unlock()

Is it ok to hold a rcu_read_lock across a large block of code?

My guess it is ok?
I need someone to correct me or point me where i am misunderstanding something.

Thanks
--psr
--
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux