public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* queuecommand called in IRQ run level
@ 2003-08-24 17:46 Rabeeh Khoury
  2003-08-27 15:01 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Rabeeh Khoury @ 2003-08-24 17:46 UTC (permalink / raw)
  To: linux-scsi

Hi All,

Is it possible that queuecommand be called in ISR time ? (IRQ run level)
I want to do kmalloc with GFP_KERNEL priority in queuecommand (or 
actually pci_pool_alloc which eventually will call kmalloc in pool 
getting low in memory).

Thank you,
Rabeeh



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: queuecommand called in IRQ run level
@ 2003-08-25  6:32 Martin Peschke3
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Peschke3 @ 2003-08-25  6:32 UTC (permalink / raw)
  To: Rabeeh Khoury; +Cc: linux-scsi


It's better to avoid any schedule in queuecommand.
First, the io_request_lock is held (irqsave) when your queuecommand
routine is called. Second, queuecommand is called from scsi_request_fn,
which is usually executed when completed SCSI command are processed,
which is done in a bottom half.
This applies to 2.4, and I suspect 2.6 is similar in that regard.

Martin

Rabeeh Khoury <rabeeh@il.marvell.com>@vger.kernel.org on 24/08/2003
19:46:02

Sent by:    linux-scsi-owner@vger.kernel.org


To:    linux-scsi@vger.kernel.org
cc:
Subject:    queuecommand called in IRQ run level


Hi All,

Is it possible that queuecommand be called in ISR time ? (IRQ run level)
I want to do kmalloc with GFP_KERNEL priority in queuecommand (or
actually pci_pool_alloc which eventually will call kmalloc in pool
getting low in memory).

Thank you,
Rabeeh


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html





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

end of thread, other threads:[~2003-08-27 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-24 17:46 queuecommand called in IRQ run level Rabeeh Khoury
2003-08-27 15:01 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2003-08-25  6:32 Martin Peschke3

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