x86/nmi: Fix use of unallocated cpumask_var_t
[cascardo/linux.git] / include / scsi / libiscsi.h
index 309f513..728c9ad 100644 (file)
@@ -133,6 +133,10 @@ struct iscsi_task {
        unsigned long           last_xfer;
        unsigned long           last_timeout;
        bool                    have_checked_conn;
+
+       /* T10 protection information */
+       bool                    protected;
+
        /* state set/tested under session->lock */
        int                     state;
        atomic_t                refcount;
@@ -327,12 +331,19 @@ struct iscsi_session {
        struct iscsi_transport  *tt;
        struct Scsi_Host        *host;
        struct iscsi_conn       *leadconn;      /* leading connection */
-       spinlock_t              lock;           /* protects session state, *
-                                                * sequence numbers,       *
+       /* Between the forward and the backward locks exists a strict locking
+        * hierarchy. The mutual exclusion zone protected by the forward lock
+        * can enclose the mutual exclusion zone protected by the backward lock
+        * but not vice versa.
+        */
+       spinlock_t              frwd_lock;      /* protects session state, *
+                                                * cmdsn, queued_cmdsn     *
                                                 * session resources:      *
-                                                * - cmdpool,              *
-                                                * - mgmtpool,             *
-                                                * - r2tpool               */
+                                                * - cmdpool kfifo_out ,   *
+                                                * - mgmtpool,             */
+       spinlock_t              back_lock;      /* protects cmdsn_exp      *
+                                                * cmdsn_max,              *
+                                                * cmdpool kfifo_in        */
        int                     state;          /* session state           */
        int                     age;            /* counts session re-opens */