seqlocks infinite loop

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

 



Hi,

When you use a seqlock as in:

do {
   seq = read_seqbegin(&seq_lock);

   do_operation();

} while(read_seqretry(&seq_lock, seq));


if do_operation() is long enough that a writer always updates seq
meanwhile, wouldn't you run into an infinite loop? (For instance if
you have one or more periodic writers.)

Can we say that we must ensure writers eventually give way to readers
of this sort?

Thanks,
Bahadir

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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