]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: Use one scan thread per controller and fix hang during rmmod
authorAndrew Patterson <andrew.patterson@hp.com>
Thu, 17 Sep 2009 18:46:58 +0000 (13:46 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:41 +0000 (21:15 +0200)
commit3799b4cc58817b62b26535f8218bade71b26028a
tree003e31b2bb29eff630c3c156e08f4eaea7d7b6e2
parent094001a980ed96e3fd2c19dbaa539af740bdf8ca
cciss: Use one scan thread per controller and fix hang during rmmod

Replace the use of one scan kthread per controller with one per driver.
Use a queue to hold a list of controllers that need to be rescanned with
routines to add and remove controllers from the queue.

Fix locking and completion handling to prevent a hang during rmmod.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c
drivers/block/cciss.h