ibmvscsis_reset_queue(9)
πΈ NAME πΈ
ibmvscsis_reset_queue β Reset CRQ Queue. yep bestie, this is the ibmvscsis_reset_queue(9) page from the Kernel API Manual, and it is literally all about resetting that CRQ queue. β¨
π SYNOPSIS π
okay so the signature is serving exactly this:
void ibmvscsis_reset_queue (struct scsi_info *vscsi );
π ARGUMENTS π
vscsiβ Pointer to our adapter structure π«Ά
π¦ DESCRIPTION π¦
so hereβs the tea: this function calls h_free_q and then calls h_reg_q, and it does all of the bookkeeping to get us back to where we can communicate. π
but plot twist β actually, we donβt always call h_free_crq. a problem was discovered where one partition would close and reopen their queue, which would cause their partner to get a transport event, which would cause them to close and reopen their queue, which would cause the original partition to get a transport event, etc., etc. π to prevent this, we donβt actually close our queue if the client initiated the reset (i.e. either we got a transport event or we have detected that the clientβs queue is gone).
EXECUTION ENVIRONMENT: Process environment, called with interrupt lock held. yes bestie, that lock is held. π
π₯ SEE ALSO π₯
like, go read these too, iykyk:
Kernel file ./drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.cconnection_broken(9)ibmvscsis_unregister_command_q(9)ibmvscsis_delete_client_info(9)ibmvscsis_free_command_q(9)ibmvscsis_cmd_q_dequeue(9)ibmvscsis_send_init_message(9)ibmvscsis_check_init_msg(9)ibmvscsis_disconnect(9)ibmvscsis_post_disconnect(9)ibmvscsis_handle_init_compl_msg(9)ibmvscsis_handle_init_msg(9)ibmvscsis_init_msg(9)ibmvscsis_establish_new_q(9)ibmvscsis_free_cmd_resources(9)ibmvscsis_ready_for_suspend(9)ibmvscsis_trans_event(9)ibmvscsis_poll_cmd_q(9)ibmvscsis_free_cmd_qs(9)ibmvscsis_get_free_cmd(9)ibmvscsis_adapter_idle(9)ibmvscsis_copy_crq_packet(9)ibmvscsis_adapter_info(9)ibmvscsis_cap_mad(9)ibmvscsis_process_mad(9)srp_snd_msg_failed(9)ibmvscsis_send_messages(9)ibmvscsis_mad(9)ibmvscsis_login_rsp(9)ibmvscsis_srp_login_rej(9)ibmvscsis_srp_login(9)ibmvscsis_srp_i_logout(9)ibmvscsis_ping_response(9)ibmvscsis_parse_command(9)ibmvscsis_parse_cmd(9)ibmvscsis_parse_task(9)ibmvscsis_service_wait_q(9)ibmvscsis_enable_change_state(9)ibmvscsis_create_command_q(9)ibmvscsis_destroy_command_q(9)srp_build_response(9)ibmvscsis_handle_crq(9)
okay thatβs the whole page! source/version situation: ./drivers/scsi/ibmvscsi_tgt; date: October 2026; manual title: ibmvscsis_reset_queue(9). mwah, bestie ππ
π¦ 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