[PATCH] USB: ub 03 Oops with CFQ
authorPete Zaitcev <zaitcev@redhat.com>
Wed, 28 Dec 2005 22:22:17 +0000 (14:22 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Feb 2006 01:23:36 +0000 (17:23 -0800)
commit65b4fe553bf43018c06740f3d1f6caf42cf95924
tree54a95a1a762501307f0b764612eb6b68894c9eb6
parentb6daf7f50836c8ed12d8b0ec0113e415f04e8530
[PATCH] USB: ub 03 Oops with CFQ

The blk_cleanup_queue does not necesserily destroy the queue. When we
destroy the corresponding ub_dev, it may leave the queue spinlock pointer
dangling.

This patch moves spinlocks from ub_dev to static memory. The locking
scheme is not changed. These spinlocks are still separate from the ub_lock.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/block/ub.c