Re: Linus rollup

David Mosberger
2003-01-29T19:05:08Z

>>>>> On Wed, 29 Jan 2003 17:25:19 +0000, Russell King <rmk@arm.linux.org.uk> said:

Russell> I was only concerned because it looks like it might be a
Russell> problem on some implementations, and I was wondering what
Russell> would happen on ia64 if a timer interrupt occurs between
Russell> reading jiffies and itm_next in gettimeoffset.

Perhaps I'm missing something, but I thought that in this case,
fr_write_unlock() would increment the counter and cause the reader(s)
to restart the reading of the time-related variables.

I do agree that, in general, there is a potential deadlock if
gettimeoffset() is not lock-free.

--david