Lines Matching refs:error
5 * SCSI error/timeout handling
72 "Waking error handler thread\n"));
78 * @shost: SCSI host to invoke error handling on.
270 * internal state once the error handler is started.
295 * scsi_eh_scmd_add - add scsi cmd to error handling.
377 * We block until the host is out of error recovery, and then check to
381 * 0 when dev was taken offline by error recovery. 1 OK to proceed.
535 * When a deferred error is detected the current command has
659 * the error handler to start the motor
785 * queued during error recovery. the main difference here is that we
797 * rats. we are already in the error handler, so we now
853 * scsi_eh_done - Completion function for error handling.
1025 * scsi_eh_prep_cmnd - Save a scsi command info as part of error recovery
1033 * as part of the error recovery process. If @sense_bytes is 0 the command
1045 * error handling may need to overwrite these with different values
1046 * to run different commands, and once error handling is complete,
1102 * scsi_eh_restore_cmnd - Restore a scsi command info as part of error recovery
1126 * scsi_send_eh_cmnd - submit a scsi command as part of error recovery
1134 * as part of the error recovery process. See also scsi_eh_prep_cmnd() above.
1275 * are ready to leave error handling we handle completion for real.
1330 * status because the error we're processing isn't one
1409 * scsi_eh_test_devices - check if devices are responding from error recovery.
1410 * @cmd_list: scsi commands in error recovery.
1411 * @work_q: queue for commands which still need more error recovery
1808 "not ready after error recovery\n");
1869 * out the actual data command. any commands that are queued for error
1872 * When this routine returns failed, it means the error handler thread
1873 * is woken. In cases where the error code indicates an error that
1874 * doesn't require the error handler read (i.e. we don't need to
2026 * returning FAILED will wake the error handler thread
2043 return SUCCESS; /* causes immediate i/o error */
2049 /* we requeue for retry because the error was retryable, and
2112 * When we entered the error handler, we blocked all further i/o to
2150 * have had everything blocked while error handling is taking place, and
2151 * now that error recovery is done, we will need to ensure that these
2247 * reasonable amount of error recovery.
2277 * scsi_error_handler - SCSI error handler thread
2281 * This is the main error handling loop. This is run as a kernel thread
2282 * for every SCSI host and handles all error handling activity.
2443 int error = 0, val;
2449 error = get_user(val, arg);
2450 if (error)
2451 return error;
2456 error = -EIO;
2507 error = (rtn == SUCCESS) ? 0 : -EIO;
2528 return error;