iscsi_free_task(9)
π
iscsi_free_task β the iscsi_free_task(9) glow-up
Okay bestie, welcome to the Kernel API Manual corner of the group chat π today's main character is iscsi_free_task(9) β yes, the lowkey cleanup queen of libiscsi. Grab your iced coffee π§ and let's get into it.
β¨ NAME β¨
iscsi_free_task β literally just frees a task, no cap π«Ά
π¦ SYNOPSIS π¦
void iscsi_free_task (struct iscsi_task *task );
It returns nothing (void) β it's giving "I do my job and I don't need applause" energy π
π ARGUMENTS π
taskβ the iscsi cmd task in question, aka the lil guy we're about to release back into the wild πΈ
π₯ DESCRIPTION π₯
Okay so this is the important part, don't scroll past it π
Must be called with session back_lock. Like, non-negotiable. Hold the lock, bestie. It's the vibe check before the function.
Once you're properly locked up, this function does one of two things depending on what kind of task it's holding:
- it returns the scsi command to scsi-ml, or
- it cleans up mgmt tasks and then returns the task to the pool π«
Either way the task ends up back where it belongs. Responsible. Iconic. Ate. β¨
π SEE ALSO π
The whole extended friend group lives over in the kernel file ./drivers/scsi/libiscsi.c β go say hi to all of them π
iscsi_prep_data_out_pdu(9)iscsi_check_tmf_restrictions(9)iscsi_prep_scsi_cmd_pdu(9)__iscsi_put_task(9)iscsi_complete_task(9)iscsi_complete_scsi_task(9)iscsi_alloc_mgmt_task(9)iscsi_send_mgmt_task(9)iscsi_scsi_cmd_rsp(9)iscsi_data_in_rsp(9)iscsi_nop_out_rsp(9)iscsi_itt_to_task(9)__iscsi_complete_pdu(9)iscsi_itt_to_ctask(9)iscsi_requeue_task(9)iscsi_data_xmit(9)iscsi_suspend_queue(9)iscsi_suspend_tx(9)iscsi_suspend_rx(9)iscsi_conn_unbind(9)iscsi_eh_session_reset(9)iscsi_eh_target_reset(9)iscsi_eh_recover_target(9)iscsi_host_add(9)iscsi_host_alloc(9)iscsi_host_remove(9)iscsi_session_setup(9)iscsi_session_free(9)iscsi_session_teardown(9)iscsi_conn_setup(9)iscsi_conn_teardown(9)
Mwah π that's the whole page, and yes you read all of it. This lil masterpiece comes from ./drivers/scsi, dated October 2026 β screenshot it, frame it, put it on your fridge πβ¨π¦
π¦ 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