Messages in this thread | | | Subject | Re: export of sys_call_table | From | Robert Love <> | Date | 04 Oct 2002 15:43:54 -0400 |
| |
On Fri, 2002-10-04 at 15:15, Brian F. G. Bidulock wrote:
> Attached is an untested patch for LiS. AK doesn't like the > read/write_lock. AFAIK it will work for LiS but might not work > for AFS.
It is not so much that he does not like it but you _cannot_ sleep while holding a spinlock. It is not just his style but common sense.
grab lock -> sleep -> new task grabs same lock -> deadlock
You need to use a semaphore here or find some other way to provide protection without becoming atomic.
Robert Love
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |