CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2013/08/26 04:13:17
Modified files:
sys/scsi : mpath.c mpath_emc.c mpath_hds.c mpath_rdac.c
mpath_sym.c mpathvar.h
Log message:
when i first imagined how paths on mpath worked, i thought the
midlayer would be able to call things on paths to explicitely online
or offline them. turns out thats not how the Real World(tm) works,
instead its better to wait for failure and probe for the status of
paths, and pick the active group of paths from that. there's even
evidence that the mechanisms for forcing controllers into active/passive
roles from the scsi initiator are being deprecated. they expect
hosts to be able to cope with arbitrary controller role changes and
failover
accordingly.
this replaces the online and offline function pointers in the path_ops
structure with a status check function pointer. instead of returning a
state, the checker is expected to call mpath_path_status() when its
finished figuring out what the state is.