__iscsi_put_task(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __iscsi_put_task β€” drop the refcount on a task

okay so welcome to the Kernel API Manual bestie, today's episode is about __iscsi_put_task and honestly it's a short one but it's important, so pay attention πŸŽ€


✨ NAME ✨

__iscsi_put_task β€” drop the refcount on a task

like literally just drops the refcount. that's the whole vibe. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

void __iscsi_put_task (struct iscsi_task *task );

that's it, that's the signature, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • task β€” the iscsi_task to drop the refcount on. yeah. that one. the task. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so this is the part where you gotta listen, because the back_lock must be held when you call this. why? because it might free the task, and if you're not holding the lock while it goes poof, that's giving chaos energy and nobody wants that 😭

so like... hold the lock. fr fr. it's not a suggestion. πŸ”’βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

all the other little functions living their best lives in the kernel file ./drivers/scsi/libiscsi.c:

that's the whole friend group, go say hi πŸ«ΆπŸ’–


okay that's the page!! this one's from ./drivers/scsi, dated October 2026, and it's literally titled __iscsi_put_task(9) β€” slay, see you in the next one bestie πŸ’…βœ¨πŸŒ·

πŸ“¦ where this page comes from