mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: [Infiniband-general] Getting an Infiniband access layer in the linux kernel
@ 2004-02-05 20:16 Woodruff, Robert J
  2004-02-05 21:54 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Woodruff, Robert J @ 2004-02-05 20:16 UTC (permalink / raw)
  To: King, Steven R, Greg KH, linux-kernel; +Cc: infiniband-general

I think that we tried to isolate a lot of these kernel calls into
one library, the component library, so that when the kernel APIs change,
which seems to happen every release, we only have to change the code 
in one spot. 

This actually helps porting to new kernels. For example, I think that
it only took a week to get the IBAL code to compile on 2.6 since all or
most 
of the kernel dependencies were isolated to one module. 

It also then allows most of the code to remain very readable, since we
don't have to put #ifdefs all over the place when an API or kernel data
structure changes. 

Are there any other examples of drivers that isolate kernel specific
calls
to one module or file of their code to ease portability between
different revisions
of the kernel ? If not, maybe they should look at what we have done,
it might save them some headaches in the future. 



-----Original Message-----
From: infiniband-general-admin@lists.sourceforge.net
[mailto:infiniband-general-admin@lists.sourceforge.net] On Behalf Of
King, Steven R
Sent: Thursday, February 05, 2004 11:39 AM
To: Greg KH; linux-kernel@vger.kernel.org
Cc: infiniband-general@lists.sourceforge.net
Subject: RE: [Infiniband-general] Getting an Infiniband access layer in
the linux kernel


We just use the kernel's spin_lock_irqsave(), so I don't know what
you're talking about.

-----Original Message-----
From: Greg KH [mailto:greg@kroah.com] 
Sent: Thursday, February 05, 2004 10:55 AM
To: King, Steven R; linux-kernel@vger.kernel.org
Cc: infiniband-general@lists.sourceforge.net
Subject: Re: [Infiniband-general] Getting an Infiniband access layer in
the linux kernel


On Thu, Feb 05, 2004 at 10:27:54AM -0800, King, Steven R wrote:
> Hi Greg,
> What exactly is wrong with spinlock?  Far as I know, it's been working

> bug-free on a variety of platforms for quite some time now.  The other

> abstractions such as atomic_t are for platform portability.

Again, compare them to the current kernel spinlocks and try to realize
why your implementation of spinlock_irqsave() will not work on all
platforms.

Come on, just use the kernel versions, there is no need to reinvent the
wheel all of the time, it just wastes everyones time (including mine...)

thanks,

greg k-h


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration See the
breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Infiniband-general mailing list Infiniband-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/infiniband-general

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

end of thread, other threads:[~2004-02-09  2:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-05 20:16 [Infiniband-general] Getting an Infiniband access layer in the linux kernel Woodruff, Robert J
2004-02-05 21:54 ` Greg KH
2004-02-06 23:20   ` Jamie Lokier
2004-02-05 22:58 ` Infiniband thread(s) and etiquette David Woodhouse
     [not found] ` <mailman.1076022900.8772.linux-kernel2news@redhat.com>
2004-02-09  2:02   ` Pete Zaitcev

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®