Why there is no “interruptible” version for “wait_for_complete” API?

Submitted by dynamo2
on September 4, 2006 - 11:33am

Why there is no “interruptible” version for “wait_for_complete” API?
“If your code calls wait_for_completion and nobody ever completes the task, the result will be an unkillable process.” (Linux Device Driver 3rd Version, Page 115)

Interruptible waits - completion

Anonymous (not verified)
on
September 4, 2006 - 12:59pm

There's a footnote on that part.
Quote:
"*As of this writing, patches adding interruptible versions
were in circulation but had not been merged into the mainline."
End Quote

I'm searching, at the moment, as to where these patches can be found.

After some searching, I think

Anonymous (not verified)
on
September 4, 2006 - 1:14pm

After some searching, I think if your kernel version is later than 2.6.10 (the version covered in LDD 3rd edition) these API changes are there.

According to LWN: http://lwn.net/Articles/120614/ .
These API changes are from kernel version 2.6.11 and onwards.

Hope this helps.
JY

It's helpful. Thank a lots.

on
September 5, 2006 - 10:15am

It's helpful. Thank a lots. ^_^

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.