Catch bugs in sys_block()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 15 Mar 2011 21:32:14 +0000 (14:32 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:00 +0000 (17:36 -0700)
commit5e231c75f689a0a300856871f3038b1895a2e190
tree8462eb42f39919285ec924b45d4d8da0d70073b5
parent35c44055794e7a4da87c45963e4bc9aa4c1bd7f7
Catch bugs in sys_block()

Do not call sys_block (or sleep in a blockdev blocking call!) in more
than one place at a time.  This will try to catch multiple uses of the
interrupt handler's void*, though it isn't atomic so it will not catch
everything.
kern/src/syscall.c