summaryrefslogtreecommitdiffstats
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorRobert Love <robert.w.love@intel.com>2011-05-16 16:46:02 -0700
committerJames Bottomley <jbottomley@parallels.com>2011-05-24 12:37:35 -0400
commitd85e607b344d8fcd644456508a5bbe63ce011221 (patch)
tree9f5af29a45cd5972fb824b4858521b75ff901558 /kernel/stop_machine.c
parent8467b96c035a45418c5db2619f396b7131b4efa8 (diff)
downloadblackbird-op-linux-d85e607b344d8fcd644456508a5bbe63ce011221.tar.gz
blackbird-op-linux-d85e607b344d8fcd644456508a5bbe63ce011221.zip
[SCSI] libfcoe: Remove unnecessary module state checks
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: Robert Love <robert.w.love@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud