diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2006-10-30 22:07:07 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-31 08:06:59 -0800 |
commit | d7fb2c3865ca0f95d92e2864c3dc9220789d83f5 (patch) | |
tree | ade46df79306ba0c5bea3449fe9a8ef66d25129b /arch/um/os-Linux/drivers | |
parent | 5f75a4f887a35b99878fc07ed749a90375194b63 (diff) | |
download | blackbird-op-linux-d7fb2c3865ca0f95d92e2864c3dc9220789d83f5.tar.gz blackbird-op-linux-d7fb2c3865ca0f95d92e2864c3dc9220789d83f5.zip |
[PATCH] uml ubd driver: change ubd_lock to be a mutex
This lock protects ubd setup and teardown, so is only used in process context;
beyond that, during such setup memory allocations must be performed and some
generic functions which can sleep must be called (such as add_disk()). So the
only correct solution is to make it a mutex instead of a spin_lock. No other
change is done - this lock must be acquired in different places but it's done
afterwards.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/os-Linux/drivers')
0 files changed, 0 insertions, 0 deletions