* Re: [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c
2006-01-09 11:38 [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c carlos neira
@ 2006-01-09 15:13 ` Matthew Wilcox
2006-01-09 17:07 ` Greg KH
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Matthew Wilcox @ 2006-01-09 15:13 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
On Mon, Jan 09, 2006 at 11:38:03AM +0000, carlos neira wrote:
> Greetings :
>
> patch :linux-2.6.15-rc7/drivers/pci/syscall.c
>
> replaced a lock_kernel with spinlocks , compile tested ok
That's not good enough. Why is this safe?
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c
2006-01-09 11:38 [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c carlos neira
2006-01-09 15:13 ` Matthew Wilcox
@ 2006-01-09 17:07 ` Greg KH
2006-01-09 19:02 ` Jesper Juhl
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-01-09 17:07 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 319 bytes --]
On Mon, Jan 09, 2006 at 11:38:03AM +0000, carlos neira wrote:
> Greetings :
>
> patch :linux-2.6.15-rc7/drivers/pci/syscall.c
>
> replaced a lock_kernel with spinlocks , compile tested ok
What arch did you compile this for?
And why remove the lock_kernel calls here, are they hurting anything?
thanks,
greg k-h
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c
2006-01-09 11:38 [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c carlos neira
2006-01-09 15:13 ` Matthew Wilcox
2006-01-09 17:07 ` Greg KH
@ 2006-01-09 19:02 ` Jesper Juhl
2006-01-09 19:12 ` Greg KH
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Jesper Juhl @ 2006-01-09 19:02 UTC (permalink / raw)
To: kernel-janitors
On 1/9/06, Greg KH <greg@kroah.com> wrote:
> On Mon, Jan 09, 2006 at 11:38:03AM +0000, carlos neira wrote:
> > Greetings :
> >
> > patch :linux-2.6.15-rc7/drivers/pci/syscall.c
> >
> > replaced a lock_kernel with spinlocks , compile tested ok
>
> What arch did you compile this for?
>
> And why remove the lock_kernel calls here, are they hurting anything?
>
I can't comment on the specific patch, but in general I thought we
wanted to get rid of lock_kernel() / unlock_kernel() over time? If
that is indeed the case, then patches like this one are a step in the
right direction - no?
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c
2006-01-09 11:38 [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c carlos neira
` (2 preceding siblings ...)
2006-01-09 19:02 ` Jesper Juhl
@ 2006-01-09 19:12 ` Greg KH
2006-01-09 19:29 ` Matthew Wilcox
2006-01-09 19:47 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-01-09 19:12 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 857 bytes --]
On Mon, Jan 09, 2006 at 08:02:19PM +0100, Jesper Juhl wrote:
> On 1/9/06, Greg KH <greg@kroah.com> wrote:
> > On Mon, Jan 09, 2006 at 11:38:03AM +0000, carlos neira wrote:
> > > Greetings :
> > >
> > > patch :linux-2.6.15-rc7/drivers/pci/syscall.c
> > >
> > > replaced a lock_kernel with spinlocks , compile tested ok
> >
> > What arch did you compile this for?
> >
> > And why remove the lock_kernel calls here, are they hurting anything?
> >
> I can't comment on the specific patch, but in general I thought we
> wanted to get rid of lock_kernel() / unlock_kernel() over time? If
> that is indeed the case, then patches like this one are a step in the
> right direction - no?
"over time, if it makes sense to do so."
For this specific example, the code should be converted to the kthread
api, which would remove these instances.
thanks,
greg k-h
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c
2006-01-09 11:38 [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c carlos neira
` (3 preceding siblings ...)
2006-01-09 19:12 ` Greg KH
@ 2006-01-09 19:29 ` Matthew Wilcox
2006-01-09 19:47 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: Matthew Wilcox @ 2006-01-09 19:29 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
On Mon, Jan 09, 2006 at 11:12:01AM -0800, Greg KH wrote:
> On Mon, Jan 09, 2006 at 08:02:19PM +0100, Jesper Juhl wrote:
> > On 1/9/06, Greg KH <greg@kroah.com> wrote:
> > > On Mon, Jan 09, 2006 at 11:38:03AM +0000, carlos neira wrote:
> > > > Greetings :
> > > >
> > > > patch :linux-2.6.15-rc7/drivers/pci/syscall.c
> > > >
> > > > replaced a lock_kernel with spinlocks , compile tested ok
> > >
> > > What arch did you compile this for?
> > >
> > > And why remove the lock_kernel calls here, are they hurting anything?
>
> "over time, if it makes sense to do so."
>
> For this specific example, the code should be converted to the kthread
> api, which would remove these instances.
I think you're confused with which patch is being commented on. The locks
around daemonize() should be converted to kthread(), but this patch is
for the PCI syscalls. As I said in a recent post to linux-pci, I think
they can be deleted without bad effect.
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c
2006-01-09 11:38 [KJ] linux-2.6.15-rc7/drivers/pci/syscall.c carlos neira
` (4 preceding siblings ...)
2006-01-09 19:29 ` Matthew Wilcox
@ 2006-01-09 19:47 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-01-09 19:47 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
On Mon, Jan 09, 2006 at 12:29:32PM -0700, Matthew Wilcox wrote:
> On Mon, Jan 09, 2006 at 11:12:01AM -0800, Greg KH wrote:
> > On Mon, Jan 09, 2006 at 08:02:19PM +0100, Jesper Juhl wrote:
> > > On 1/9/06, Greg KH <greg@kroah.com> wrote:
> > > > On Mon, Jan 09, 2006 at 11:38:03AM +0000, carlos neira wrote:
> > > > > Greetings :
> > > > >
> > > > > patch :linux-2.6.15-rc7/drivers/pci/syscall.c
> > > > >
> > > > > replaced a lock_kernel with spinlocks , compile tested ok
> > > >
> > > > What arch did you compile this for?
> > > >
> > > > And why remove the lock_kernel calls here, are they hurting anything?
> >
> > "over time, if it makes sense to do so."
> >
> > For this specific example, the code should be converted to the kthread
> > api, which would remove these instances.
>
> I think you're confused with which patch is being commented on. The locks
> around daemonize() should be converted to kthread(), but this patch is
> for the PCI syscalls. As I said in a recent post to linux-pci, I think
> they can be deleted without bad effect.
Ugh, yeah, sorry, -ETOOMANYPATCHES
And yes, I think they can probably be deleted, but not replaced with a
spinlock like was done here.
thanks,
greg k-h
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread