Messages in this thread | | | From | David Brownell <> | Subject | Re: [PATCH] rtc: remove BKL for ioctl() | Date | Wed, 25 Jun 2008 16:04:49 -0700 |
| |
On Wednesday 25 June 2008, Alan Cox wrote: > > > > Shouldn't that be -EINTR? > > For an ioctl case which should never be blocking for long periods it > shouldn't be _interruptible in the first place, that will just introduce > bizarre and weird bugs in application code. > > If there are slow ops they should drop and retake the lock.
What's a "long period"?
RTCs that connect using I2C or SPI will need to queue for access to that particular serial bus, and then there are transfer costs. The busses are frequently, but of course not always, idle. For I2C at 100 KHz, RTC transfers might take a millisecond or so.
I'd be tempted to say those are all quick enough that the ops don't need to be interruptible.
- Dave
| |