[stgt] Question regarding iscsi rx/tx handler for async io connection

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Fri Feb 12 03:58:54 CET 2010


On Thu, 11 Feb 2010 13:27:42 -0800 (PST)
charles zhuang <cjiazhuang at yahoo.com> wrote:

> The main iscsi state machine, iscsi_tx_handler & iscsi_rx_handler,
> use iscsi_connection as its parameter. None of them use any locking
> mechanism, so what about the rx/tx handler has been re-entry in the
> middle, will that cause the iscsi state variable mess up? Should the
> iscsi state variable belong to iscsi_task since one iscsi_connection
> may have multiple iscsi_task pending at one time?

One iscsi_connection may have multiple iscsi_task pending at one time,
however, we always handle the head of a task, that is, we proceed to
the next task after finishing the head of the task.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list