public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI sg: Questions regarding jiffies usage
@ 2004-07-11  0:41 Adrian Bunk
  2004-07-12 19:35 ` Douglas Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2004-07-11  0:41 UTC (permalink / raw)
  To: dgilbert; +Cc: linux-scsi

Hi,

I have some questions regarding jiffies usage in the SCSI sg driver in 
2.6.7-mm7:


Is there a good reason for the local sg_ms_to_jif/sg_jif_to_ms functions  
instead of using the time.h msecs_to_jiffies/jiffies_to_msecs macros?

In function sg_new_write:
   timeout = sg_ms_to_jif(srp->header.timeout);
How is it possible that srp->header.timeout isn't already
in jiffies?

Why do both sg_add_request and sg_common_write set
  duration = jiffies
?


TIA
Adrian

BTW: Please Cc me on replies.

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-11  0:41 SCSI sg: Questions regarding jiffies usage Adrian Bunk
2004-07-12 19:35 ` Douglas Gilbert
2004-07-12 22:46   ` Adrian Bunk
2004-07-12 23:11     ` Douglas Gilbert
2004-07-12 23:59       ` Adrian Bunk

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