Re: [PATCH v0] add nano semaphore in kernel

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hillf Danton
Date: Monday, December 27, 2010 - 7:04 am

On Sun, Dec 26, 2010 at 8:56 PM, Rakib Mullick <rakib.mullick@gmail.com> wrote:

There are methods in kernel, say watchdog, to detect cases that are out
of track. The estimation about the availability of resource is utilized also
in dispatching commands to scsi disk by registering timer.

In nano semaphore, though the methods not implemented,
the waiter is able to work out which task is holding it over 60us in
out-of-track case.


This is another hard question. And Ingo could say a few words about
the accuracy of hrtimer.


This is not hard. When kmallocing 4k, if NULL returned, I will try half,
if still not available, simply return -ENOMEM.


Another way looks to return -EBUSY directly, like aborting what is
dispatched and reset the bus then in scsi.


I will info her every two minutes that taxi still not available, and
go home after 15 infos.


And lets return to nano semaphore, it is designed, unlike semaphore, not to loop
until released by its holder. Another difference is that the caller is free to
select the time period in nano seconds to wait.

Should anything else be added?

thanks,
Hillf
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v0] add nano semaphore in kernel, Hillf Danton, (Sat Dec 25, 10:13 pm)
Re: [PATCH v0] add nano semaphore in kernel, Rakib Mullick, (Sat Dec 25, 11:46 pm)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Sun Dec 26, 12:04 am)
Re: [PATCH v0] add nano semaphore in kernel, Rakib Mullick, (Sun Dec 26, 2:08 am)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Sun Dec 26, 5:05 am)
Re: [PATCH v0] add nano semaphore in kernel, Rakib Mullick, (Sun Dec 26, 5:56 am)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Mon Dec 27, 7:04 am)
Re: [PATCH v0] add nano semaphore in kernel, Randy Dunlap, (Mon Dec 27, 1:08 pm)
Re: [PATCH v0] add nano semaphore in kernel, Arnd Bergmann, (Mon Dec 27, 2:15 pm)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Tue Dec 28, 6:13 am)
Re: [PATCH v0] add nano semaphore in kernel, Daniel Walker, (Tue Dec 28, 8:51 am)
Re: [PATCH v0] add nano semaphore in kernel, Arnd Bergmann, (Wed Dec 29, 4:47 am)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Wed Dec 29, 7:42 am)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Wed Dec 29, 7:57 am)
Re: [PATCH v0] add nano semaphore in kernel, Daniel Walker, (Wed Dec 29, 7:58 am)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Wed Dec 29, 8:03 am)
Re: [PATCH v0] add nano semaphore in kernel, Arnd Bergmann, (Wed Dec 29, 12:16 pm)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Thu Dec 30, 7:21 am)
Re: [PATCH v0] add nano semaphore in kernel, Arnd Bergmann, (Thu Dec 30, 8:56 am)
Re: [PATCH v0] add nano semaphore in kernel, Pavel Machek, (Tue Jan 4, 7:03 am)
Re: [PATCH v0] add nano semaphore in kernel, Hillf Danton, (Tue Jan 4, 7:18 am)