mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* who decrements can_queue in Scsi_Host structure ?
@ 2001-07-17 21:35 MEHTA,HIREN (A-SanJose,ex1)
  2001-07-17 21:57 ` Eric Youngdale
  0 siblings, 1 reply; 2+ messages in thread
From: MEHTA,HIREN (A-SanJose,ex1) @ 2001-07-17 21:35 UTC (permalink / raw)
  To: 'linux-scsi@vger.kernel.org',
	'linux-kernel@vger.kernel.org'

Hi LIsts,

In the hosts.h file, the following was the definition of
can_queue variable in the Scsi_Host_Template (SHT) structure. 



    /* 
     * THis determines if we will use a non-interrupt driven
     * or an interrupt driver scheme, It is set to the maximum number
     * of simultaneous commands a given host adapter will accept.
     */
    int can_queue;

Scsi_Host structure also has the same variable which gets initialized
with the can_queue of SHT structure in the scsi_register().
Let's say the can_queue in initialized to 16. Now, I could not find
anybody decrementing this variable. So, when the time comes to
send a new command to the hba, the can_queue of the host sturcture is
checked and if that is non-zero, then the queuecommand() entry point
is immediately called. So, the queuecommand will always be called 
even if the host is already given 'can_queue' commands.

Any inputs on this ?

-hiren

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

end of thread, other threads:[~2001-07-17 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17 21:35 who decrements can_queue in Scsi_Host structure ? MEHTA,HIREN (A-SanJose,ex1)
2001-07-17 21:57 ` Eric Youngdale

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

all inboxes | Powered by JetHome®