Re: [PATCH 10/16] gdth: gdth_get_status() return pointer to host not its index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 30, 2007 at 10:09:20PM +0200, Boaz Harrosh wrote:
> 
>   - Return the interrupting host and not it's index.
>     NULL if intr is not by gdth.
>   - fix calling site
> 
>   FIXME:
>    Why are we looping on all cards? the passed dev_id
>    can be used for pinpointing the exact interrupting
>    card. The kernel is already looping on all sharing
>    cards so this code makes it O(n^2).

This is just pre-historic code that makes no sense whatover in a modern
kernel.  I'd much prefer to stop doing this and use dev_id properly.

>    What is that polling mode? can we pass dev_id to
>    gdth_get_status() and do a poll only if dev_id is
>    NULL?

Just loop over all host adapters in gdth_wait instead and pass in the
ha pointer.

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux