1. 16 10月, 2011 1 次提交
  2. 27 8月, 2011 1 次提交
  3. 25 5月, 2011 1 次提交
    • R
      [SCSI] libfcoe: Remove unnecessary module state checks · d85e607b
      Robert Love 提交于
      libfcoe's interface consists of create, destroy, enable,
      disable and create_vn2vn. These are currently module
      paramaters added durring the module initialization. A
      concern arose that the module parameters were being added
      with write permissions before the module had completed
      initialization. The following code was added to each
      sysfs store file.
      
      * Make sure the module has been initialized, and is not about to be
      * removed.  Module parameter sysfs files are writable before the
      * module_init function is called and after module_exit.
      */
      if (THIS_MODULE->state != MODULE_STATE_LIVE)
          goto out_nodev;
      
      This check was called out as unhelpful as the module can
      go dead at any time and therefore its state isn't a reliable
      thing to look at as a sign of stability and initialization
      completion. Also, that functional interfaces like these
      should be added after module initialization.
      
      This patch removes the unnecessary checks and hopes to
      disprove the concern about initialization ordering.
      
      Recent fcoe transport rework changes now require fcoe
      transports to register with libfcoe before any operation
      can take place. libfcoe may access some static variables
      but nothing that could cause a problem. Once a fcoe transport
      is registered, libfcoe is usable and any interface calls will
      be functional.
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Tested-by: NRoss Brattain <ross.b.brattain@intel.com>
      Signed-off-by: NJames Bottomley <jbottomley@parallels.com>
      d85e607b
  4. 01 5月, 2011 4 次提交
  5. 01 3月, 2011 1 次提交
  6. 13 2月, 2011 3 次提交