Re: [PATCH 1/4] iscsi class, qla4xxx and libiscsi: export iscsi session state in sysfs

2007-03-15 Thread Mike Christie
James Smart wrote: > > > > >> @@ -1768,7 +1781,8 @@ static void iscsi_start_session_recovery >> * flush queues. >> */ >> spin_lock_bh(&session->lock); >> -fail_all_commands(conn); >> +fail_all_commands(conn, >> +STOP_CONN_RECOVER ? DID_BUS_BUSY : DID_ERROR);

Re: [PATCH 1/4] iscsi class, qla4xxx and libiscsi: export iscsi session state in sysfs

2007-03-15 Thread James Smart
@@ -1768,7 +1781,8 @@ static void iscsi_start_session_recovery * flush queues. */ spin_lock_bh(&session->lock); - fail_all_commands(conn); + fail_all_commands(conn, + STOP_CONN_RECOVER ? DID_BUS_BUSY : DID_ERROR); flush_contr

[PATCH 1/4] iscsi class, qla4xxx and libiscsi: export iscsi session state in sysfs

2007-03-14 Thread michaelc
From: Mike Christie <[EMAIL PROTECTED]> This patch adds some common iscsi state info to the iscsi class, so we can view it in sysfs. It also adds a functions to check the state before we queue IO (like the fc class). libiscsi does this already internally, so this is moving some libiscsi functional