]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libsas: fix runaway error handler problem
authorJames Bottomley <James.Bottomley@suse.de>
Thu, 20 Jan 2011 23:26:44 +0000 (17:26 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:46:55 +0000 (14:46 -0800)
commitfc01d7640a37c1a94a45116454c5bb0dc9e734cb
tree7fc43284d124f2d8f8e28bf8dcb9718e75e6aed2
parentb6a8c9a655803a612d65fe2a139ebff7ded82a1d
libsas: fix runaway error handler problem

commit 9ee91f7fb550a4c82f82d9818e42493484c754af upstream.

libsas makes use of scsi_schedule_eh() but forgets to clear the
host_eh_scheduled flag in its error handling routine.  Because of this,
the error handler thread never gets to sleep; it's constantly awake and
trying to run the error routine leading to console spew and inability to
run anything else (at least on a UP system).  The fix is to clear the
flag as we splice the work queue.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/libsas/sas_scsi_host.c