public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] Emulex lpfcdriver v8.0.7 available
@ 2004-07-23 21:15 Jamie Wellnitz
  2004-07-26 13:44 ` 'Christoph Hellwig'
  2004-07-27 12:09 ` 'Christoph Hellwig'
  0 siblings, 2 replies; 3+ messages in thread
From: Jamie Wellnitz @ 2004-07-23 21:15 UTC (permalink / raw)
  To: 'Christoph Hellwig', 'linux-scsi@vger.kernel.org'

Christoph,

We've posted the 8.0.7 lpfc driver tarball on SourceForge.  The LUN
handling is gone and your patch to remove some dead code related to
lpfc_build_scsi_cmd() is included along with some other cleanup.

The tarball is here:
http://prdownloads.sourceforge.net/lpfcxxxx/lpfcdriver-2.6-8.0.7.tar.gz?download

The full ChangeLog is on SourceForge:
http://sourceforge.net/forum/forum.php?forum_id=393984

Thanks,
Jamie
Jamie.Wellnitz@emulex.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] Emulex lpfcdriver v8.0.7 available
  2004-07-23 21:15 [ANNOUNCE] Emulex lpfcdriver v8.0.7 available Jamie Wellnitz
@ 2004-07-26 13:44 ` 'Christoph Hellwig'
  2004-07-27 12:09 ` 'Christoph Hellwig'
  1 sibling, 0 replies; 3+ messages in thread
From: 'Christoph Hellwig' @ 2004-07-26 13:44 UTC (permalink / raw)
  To: Jamie Wellnitz; +Cc: 'linux-scsi@vger.kernel.org'

looking at your lun/target handling changes a little more:

 - lpfc_find_target can lose it's last two arguments
 - lpfc_findnode_scsiid can be merged into lpfc_find_target,
   killing lots of dead checks.
 - it looks like all the callers of lpfc_find_target in lpfc_hbadisc.c
   realy want to be scsi_add_device calls, which calls lpfc_slave_alloc
   meaning lpfc_find_target could be merged into that one.
 - similarly your statemachine should probably call scsi_remove_device
   when a target disappears.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] Emulex lpfcdriver v8.0.7 available
  2004-07-23 21:15 [ANNOUNCE] Emulex lpfcdriver v8.0.7 available Jamie Wellnitz
  2004-07-26 13:44 ` 'Christoph Hellwig'
@ 2004-07-27 12:09 ` 'Christoph Hellwig'
  1 sibling, 0 replies; 3+ messages in thread
From: 'Christoph Hellwig' @ 2004-07-27 12:09 UTC (permalink / raw)
  To: Jamie Wellnitz; +Cc: linux-scsi

There's some more issues with timer useag in the driver:

 - never to timer->expires = 0, the proper way to stop a timer
   is del_timer, or del_timer_sync if you need to ensure the handler
   isn't running anymore when your finished (typically only needed
   when you free the containing object afterwards)
 - if you just want to modify the timeout use mod_timer, due to using
   del_timer_sync instead of del_timer your delete/change/add cycles
   actually are safe but not otimal, del_timer_sync is very bad on
   large systems. 
 - you can call del_timer/del_timer_sync/mod_timer on any timer object
   init_timer has been called on, no need to check whether it's actually
   running before
 - for the remaining few cases where you need to check that use timer_pending

As a tule of thumb of the above: never poke into timer->expires for a running
timer.

Also the timer data should usually set just after calling timer_init unless
it may change over the lifetime of the timer object which isn't trivial to
get right.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-27 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-23 21:15 [ANNOUNCE] Emulex lpfcdriver v8.0.7 available Jamie Wellnitz
2004-07-26 13:44 ` 'Christoph Hellwig'
2004-07-27 12:09 ` 'Christoph Hellwig'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox