scsi_eh_get_sense(9)
π scsi_eh_get_sense(9) π
okay so this is a page from the Kernel API Manual, bestie β it's called scsi_eh_get_sense and it's all about getting device sense data. let's get into it π
β¨ NAME β¨
scsi_eh_get_sense β get device sense data. that's the whole vibe, no cap π«Ά
π¦ SYNOPSIS π¦
int scsi_eh_get_sense (struct list_head *work_q , struct list_head *done_q );
πΈ ARGUMENTS πΈ
work_qβ queue of commands to process. this is the "to-do list" pile πdone_qβ queue of processed commands. the "already handled it, bestie" pile β¨
π DESCRIPTION π
so what this does is: it checks whether we need to request sense information. and if so? it goes and gets it right now β so we have a better idea of what to do next. lowkey just gathering the info before we make moves π₯
π NOTES π
okay so there's an unfortunate side effect here and we have to talk about it: if a shost adapter does not automatically request sense information, we end up shutting it down before we request it. yeah. π
all drivers should be requesting sense information internally these days, so for now all I have to say is tough noogies if you end up in here π
XXX: long term this code should go away, but that needs an audit of all LLDDs first. so like, it's on the list, but the list is long, iykyk π§
π SEE ALSO π
kernel file ./drivers/scsi/scsi_error.c β plus literally this entire friend group:
scsi_schedule_eh(9)scmd_eh_abort_handler(9)scsi_abort_command(9)scsi_eh_reset(9)scsi_eh_scmd_add(9)scsi_timeout(9)scsi_block_when_processing_errors(9)scsi_eh_prt_fail_stats(9)scsi_report_sense(9)scsi_check_sense(9)scsi_eh_completed_normally(9)scsi_eh_done(9)scsi_try_host_reset(9)scsi_try_bus_reset(9)scsi_try_target_reset(9)scsi_try_bus_device_reset(9)scsi_try_to_abort_cmd(9)scsi_eh_prep_cmnd(9)scsi_eh_restore_cmnd(9)scsi_send_eh_cmnd(9)scsi_request_sense(9)scsi_eh_finish_cmd(9)scsi_eh_tur(9)scsi_eh_test_devices(9)scsi_eh_try_stu(9)scsi_eh_bus_device_reset(9)scsi_eh_target_reset(9)scsi_eh_bus_reset(9)scsi_eh_host_reset(9)scsi_eh_offline_sdevs(9)scsi_noretry_cmd(9)scsi_decide_disposition(9)scsi_eh_lock_door(9)scsi_restart_operations(9)scsi_eh_ready_devs(9)scsi_eh_flush_done_q(9)scsi_unjam_host(9)scsi_error_handler(9)scsi_report_bus_reset(9)scsi_report_device_reset(9)scsi_ioctl_reset(9)scsi_get_sense_info_fld(9)
and that's the whole page, bestie!! πβ¨ this one came from the source ./drivers/scsi, dated October 2026 β and the manual is scsi_eh_get_sense(9), which we already knew because it's literally the title π slay, go fix your SCSI errors, ily π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms