sd_eh_reset(9)
π sd_eh_reset(9) π
okay so this is the Kernel API Manual page for sd_eh_reset(9), and it's giving βtiny reset function with big main-character energyβ β¨
πΈ NAME πΈ
sd_eh_reset β reset the error handling callback, bestie π
π¦ SYNOPSIS π¦
void sd_eh_reset (struct scsi_cmnd *scmd );
π ARGUMENTS π
scmdβ the sd-issued command that has failed. yep, that's the one π«Ά
β¨ DESCRIPTION β¨
So this function gets called by the SCSI midlayer before starting SCSI EH. no cap.
When we're counting medium access failures, we have to be careful to register it only only once per device and SCSI EH run. because there might be several timed out commands, and those will cause the SCSI EH run already and set the device to offline π
So yeah: this function resets the internal counter before starting SCSI EH. iconic little cleanup moment, honestly π
π SEE ALSO π
Kernel file: ./drivers/scsi/sd.c
sd_group_number(9)sd_open(9)sd_release(9)sd_ioctl(9)sd_check_events(9)sd_eh_action(9)sd_done(9)sd_read_block_provisioning(9)sd_read_cpr(9)sd_revalidate_disk(9)sd_unlock_native_capacity(9)sd_format_disk_name(9)sd_probe(9)sd_remove(9)init_sd(9)exit_sd(9)
xoxo, ur Unix bestie π
π«Ά β source/version: ./drivers/scsi, date: October 2026, page: sd_eh_reset(9) π
π¦ 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