Re: [PATCH] driver: ip27-rtc - convert ioctl to unlocked_ioctl

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Cyrill Gorcunov <gorcunov@...>
Cc: Paul Gortmaker <p_gortmaker@...>, LKML <linux-kernel@...>, Andi Kleen <ak@...>, Alexey Dobriyan <adobriyan@...>
Date: Monday, January 14, 2008 - 11:59 am

On 01/14/2008 04:38 PM, Cyrill Gorcunov wrote:

Access to global variable 'rtc' (the rtc itself) is serialized through the 
spinlock, I see no problem there. If you call read-read-write-read from 4 tasks 
in userspace, it might be _still_ (no change) reordered to e.g. 
write-read-read-read by the scheduler.

In fact, the reading process is stopped while the another one is writing the 
time (due to spinlock).
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] driver: ip27-rtc - convert ioctl to unlocked_ioctl, Cyrill Gorcunov, (Sun Jan 13, 4:32 pm)
Re: [PATCH] driver: ip27-rtc - convert ioctl to unlocked_ioctl, Jiri Slaby, (Mon Jan 14, 11:59 am)