1. 11 9月, 2009 22 次提交
  2. 23 8月, 2009 3 次提交
  3. 22 6月, 2009 1 次提交
  4. 24 5月, 2009 1 次提交
  5. 21 5月, 2009 1 次提交
  6. 27 4月, 2009 4 次提交
    • R
      [SCSI] libfc: Fix compilation warnings with allmodconfig · a29e7646
      Robert Love 提交于
      When building with a .config generated from 'make allmodconfig'
      some build warnings are generated. This patch corrects the warnings,
      adds a FC_FID_NONE (= 0) enumeration for FC-IDs and cleans up one
      variable naming to meet our variable naming conventions. For example,
      fc_lport's should be named "lport," not "lp."
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      a29e7646
    • A
      [SCSI] libfc: whenever queueing delete ev for rport, set state to NONE · 55c7a60c
      Abhijeet Joglekar 提交于
      When a delete event is queued for an rport, set state to NONE so that no
      other processing is done on the rport as it is being removed.
      Signed-off-by: NAbhijeet Joglekar <abjoglek@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      55c7a60c
    • A
      [SCSI] libfc: Track rogue remote ports · b4c6f546
      Abhijeet Joglekar 提交于
      Rogue ports are currently not tracked on any list. The only reference
      to them is through any outstanding exchanges pending on the rogue ports.
      If the module is removed while a retry is set on a rogue port
      (say a Plogi retry for instance), this retry is not cancelled because there
      is no reference to the rogue port in the discovery rports list. Thus the
      local port can clean itself up, delete the exchange pool, and then the
      rogue port timeout can fire and try to start up another exchange.
      
      This patch tracks the rogue ports in a new list disc->rogue_rports. Creating
      a new list instead of using the disc->rports list keeps remote port code
      change to a minimum.
      
      1)  Whenever a rogue port is created, it is immediately added to the
      disc->rogue_rports list.
      
      2) When the rogues port goes to ready, it is removed from the rogue list
      and the real remote port is added to the disc->rports list
      
      3) The removal of the rogue from the disc->rogue_rports list is done in
      the context of the fc_rport_work() workQ thread in discovery callback.
      
      4) Real rports are removed from the disc->rports list like before. Lookup
      is done only in the real rports list. This avoids making large changes
      to the remote port code.
      
      5) In fc_disc_stop_rports, the rogues list is traversed in addition to the
      real list to stop the rogue ports and issue logoffs on them. This way, rogue
      ports get cleaned up when the local port goes away.
      
      6) rogue remote ports are not removed from the list right away, but
      removed late in fc_rport_work() context, multiple threads can find the same
      remote port in the list and call rport_logoff(). Rport_logoff() only
      continues with the logoff if port is not in NONE state, thus preventing
      multiple logoffs and multiple list deletions.
      
      7) Since the rport is removed from the disc list at a later stage
      (in the disc callback), incoming frames can find the rport even if
      rport_logoff() has been called on the rport. When rport_logoff() is called,
      the rport state is set to NONE, and we are trying to cancel all exchanges
      and retries on that port. While in this state, if an incoming
      Plogi/Prli/Logo or other frames match the rport, we should not reply
      because the rport is in the NONE state. Just drop the frame, since the
      rport will be deleted soon in the disc callback (fc_rport_work)
      
      8)  In fc_disc_single(), remove rport lookup and call to fc_disc_del_target.
      fc_disc_single() is called from recv_rscn_req() where rport lookup
      and rport_logoff is already done.
      Signed-off-by: NAbhijeet Joglekar <abjoglek@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      b4c6f546
    • A
      [SCSI] libfc: Do not retry if the new state is not the same as old state · 76f6804e
      Abhijeet Joglekar 提交于
      For instance, if there is a Plogi pending (remote port is in Plogi state),
      and the state changes to say NONE (because the port is being logged off),
      then when the Plogi resp times out, do not start a retry.
      
      This patch partially reverts an earlier patch (libfc: check for err when
      recv and state is incorrect), by moving the state check back to before
      checking for error. However, if the state does not match, then there is
      an additional check to see if its an error ptr or a real frame before
      jumping to err or out respectively.
      Signed-off-by: NAbhijeet Joglekar <abjoglek@cisco.com>
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      76f6804e
  7. 13 3月, 2009 1 次提交
    • F
      [SCSI] libfc: fix compile warning · 6e7490c7
      FUJITA Tomonori 提交于
      I got the following warnings on IA64:
      
      drivers/scsi/libfc/fc_lport.c: In function 'fc_lport_recv_flogi_req':
      drivers/scsi/libfc/fc_lport.c:788: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'u64'
      drivers/scsi/libfc/fc_lport.c:792: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'u64'
      scsi/libfc/fc_rport.c: In function 'fc_rport_recv_plogi_req':
      /home/fujita/git/linux-2.6/drivers/scsi/libfc/fc_rport.c:968: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'u64'
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Cc: Robert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      6e7490c7
  8. 10 3月, 2009 2 次提交
    • R
      [SCSI] libfc, fcoe: Cleanup function formatting and minor typos · b2ab99c9
      Robert Love 提交于
      1) There were a few functions with a strange layout, i.e. all
         arguments on the second line, when not necessary.
      
         Where ever possible I moved the return value to the same line
         as the function name. However, when the line was too long
         to have a single argument on the same line I moved the
         return value to above line. For example:
      
         <short return> <function name>(<arg 1>, <arg2>)
      
         and
      
         <very long return value>
         <function name>(<arg1>,
      		   <arg2>)
      
      2) Removed one extra whitespace line
      
      3) Fixed two typos
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      b2ab99c9
    • R
      [SCSI] libfc, fcoe: Fix kerneldoc comments · 34f42a07
      Robert Love 提交于
      1) Added '()' for function names in kerneldoc comments
      
      2) Changed comment bookends from '**/' to '*/'. The comment on the the
         mailing list was that '**/' "is consistently unconventional.  Not
         wrong, just odd." The Documentation/kernel-doc-nano-HOWTO.txt
         states that kerneldoc comment blocks should end with '**/' but most
         (if not all) instance I found under drivers/scsi/ were only using
         the '*/' so I converted to that style.
      
      3) Removed incorrect linebreaks in kerneldoc comments where found
      
      4) Removed a few unnecessary blank comment lines in kerneldoc comment
         blocks
      Signed-off-by: NRobert Love <robert.w.love@intel.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      34f42a07
  9. 07 3月, 2009 5 次提交