OSDN Git Service

[SCSI] hpsa: do not sleep in atomic context in rmmod path.
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 5 Jan 2012 16:15:31 +0000 (10:15 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 16 Jan 2012 05:47:24 +0000 (09:47 +0400)
commit775bf2773858c50d2acfcdf71889984be94e7037
treebde361db470dacb057a2a30e4e43798ad4922cbf
parentf2d7e40e8069f0d6b4958dbda4383f412f53c7d1
[SCSI] hpsa: do not sleep in atomic context in rmmod path.

Don't call kthread_stop with a spin lock held and interrupts
disabled because kthread_stop will sleep waiting for the thread
to stop.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c