All of lore.kernel.org
 help / color / mirror / Atom feed
* scsi_scan.c
@ 2002-07-25 20:42 Luben Tuikov
  2002-07-25 21:04 ` scsi_scan.c Patrick Mansfield
  0 siblings, 1 reply; 3+ messages in thread
From: Luben Tuikov @ 2002-07-25 20:42 UTC (permalink / raw)
  To: linux-scsi

What is the status of scsi_scan.c in 2.4.latest
and in 2.5.latest (28)?

I thought that Patric Mansfield's version would be
used? It looks to me (2.5.28) that some mixture
of old and new (P.M.) code is used. (Judging by
the the use of the old ``if (SDpnt != oldSDpnt) ...''
along with the new scsi_scan_target() by P.M.)

Currently select_queue_depths() gets quite confused
setting the queue depths unless extended effort
is used on SDpnt to see that it is the ``next''
device to be later scanned... (going through the devices)

???
-- 
Luben

^ permalink raw reply	[flat|nested] 3+ messages in thread
* scsi_scan.c
@ 2005-09-22 15:15 Andre Straker-Payne
  0 siblings, 0 replies; 3+ messages in thread
From: Andre Straker-Payne @ 2005-09-22 15:15 UTC (permalink / raw)
  To: linux-kernel

With regards to Linux 2.6, file "drivers/scsi/scsi_scan.c", lines 691 and 928.

691         result = kmalloc(256, GFP_ATOMIC |
692                         (host->unchecked_isa_dma) ? __GFP_DMA : 0);

928         lun_data = kmalloc(length, GFP_ATOMIC |
929                            (sdev->host->unchecked_isa_dma ? __GFP_DMA :
0));

In line 691, the evaluation done to fill the priority field for the kmalloc is
ambiguous. If your system does not support the GFP_DMA type, this call will
fail, since it always evaluates true. I imagine that 928 is shows what this 691
should look like.

Andre Straker-Payne

"There are known knowns. These are things we know that we know. There are known unknowns. That is to say, there are things that we know we don't know. But there are also unknown unknowns. There are things we don't know we don't know. "

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

end of thread, other threads:[~2005-09-22 15:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-25 20:42 scsi_scan.c Luben Tuikov
2002-07-25 21:04 ` scsi_scan.c Patrick Mansfield
  -- strict thread matches above, loose matches on Subject: below --
2005-09-22 15:15 scsi_scan.c Andre Straker-Payne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.