]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: fix I/O hang when multiple devices are in use
authorJeff Dike <jdike@addtoit.com>
Thu, 29 Mar 2007 08:20:27 +0000 (01:20 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Mar 2007 15:22:24 +0000 (08:22 -0700)
commit61fbfdc5b8468ed6fa9b71ab297bfa2cc9f9805d
tree964576fad2872f41e798e109979daad4002007af
parent479fc2cf4b44d2f9985242b864883fdaf295dc7d
[PATCH] uml: fix I/O hang when multiple devices are in use

Commit 8151340310a1c560e9b269e134e7c4362b52b6a9 introduced per-devices
queues and locks, which was fine as far as it went, but left in place a
global which controlled access to submitting requests to the host.  This
should have been made per-device as well, since it causes I/O hangs when
multiple block devices are in use.

This patch fixes that by replacing the global with an activity flag in the
device structure in order to tell whether the queue is currently being run.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/ubd_kern.c