]> git.karo-electronics.de Git - mv-sheeva.git/commit
memstick: fix hangs on unexpected device removal in mspro_blk
authorMaxim Levitsky <maximlevitsky@gmail.com>
Wed, 11 Aug 2010 21:17:52 +0000 (14:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 15:43:31 +0000 (08:43 -0700)
commitd862b13bc8cbab9692fbe0ef44c40d0488b81af1
treee8eeff7c7d8759cd6c812a895d2234ddf16d94c7
parent21fd0495ea61d53e0ebe575330e343ce4e6d2a61
memstick: fix hangs on unexpected device removal in mspro_blk

mspro_block_remove() is called from detect thread that first calls the
mspro_block_stop(), which stops the request queue.  If we call
del_gendisk() with the queue stopped we get a deadlock.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/memstick/core/mspro_block.c