]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi: cleanup setting task state in scsi_error_handler()
authorDan Williams <dan.j.williams@intel.com>
Fri, 6 Apr 2012 00:29:12 +0000 (17:29 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 13 Apr 2012 06:20:51 +0000 (23:20 -0700)
commite012c56a4bb9c0f317df12733491a052c032dcfc
tree17836b3b7f2dc8016c5d1fbb4b4f87cbe5cd6993
parente8a7c5645510bc597b52496a79ac784ab0c6141e
scsi: cleanup setting task state in scsi_error_handler()

Reading scsi_error_handler() one could easily come away with the
impression that it does its wakeup event check while the task state is
TASK_RUNNING.  In fact it sets TASK_INTERRUPTIBLE at the bottom of the
loop, but that is ~50 lines down.

Just set TASK_INTERRUPTIBLE at the top of loop and be done.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/scsi_error.c