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

* Re: scsi_scan.c
  2002-07-25 20:42 scsi_scan.c Luben Tuikov
@ 2002-07-25 21:04 ` Patrick Mansfield
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Mansfield @ 2002-07-25 21:04 UTC (permalink / raw)
  To: Luben Tuikov; +Cc: linux-scsi

On Thu, Jul 25, 2002 at 04:42:02PM -0400, Luben Tuikov wrote:
> 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.)

The REPORT LUNS support and scsi_scan_target are there, I didn't push my
scsi_scan.c cleanup, I'm re-rolling right now to 2.5.28 - generally, merging
with the driverfs stuff Mike Sullivan added (plus his patches that apply
to scsi_scan.c).

> 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)
> 
> ???

Do you mean for the "hardcoded" scanning via /proc/scsi/scsi? Doug Ledford
has a nice patch for this via the slave_attach/slave_detach calls - 
slave_attach can set the queue depth.

I still think all queue depth setting/handling could be done in the
mid-layer, or at a minimum have some common queue depth setting/handling
code.

In any case, select_queue_depths is broken for hardcoded scanning, since
queue depths can't be adjusted.

-- Patrick Mansfield

> -- 
> Luben
> -
> 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

* 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.