Re: [PATCH 3/5] Use mutex instead of semaphore in the SCSI Tape driver

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Matthias Kaehlcke wrote: > The SCSI Tape driver uses a semaphore as mutex. Use the mutex API > instead of the (binary) semaphore. > > Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> Reviewed-by: Satyam Sharma <[EMAIL PROTECTED]> - To unsubscr

Re: [PATCH 2/5] Use mutex instead of semaphore in the OnStream SCSI Tape driver

2007-07-29 Thread Satyam Sharma
ck)) > + if (mutex_lock_interruptible(>lock)) > return (-ERESTARTSYS); Same here. Reviewed-by: Satyam Sharma <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED

Re: [PATCH 1/5] Use mutex instead of semaphore in the Host AP driver

2007-07-29 Thread Satyam Sharma
On Mon, 30 Jul 2007, Michael Buesch wrote: > On Sunday 29 July 2007 23:34, Matthias Kaehlcke wrote: > > The Host AP driver uses a semaphore as mutex. Use the mutex API > > instead of the (binary) semaphore. > > > > Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> [ Something seems to have

[PATCH][resend] Fix a typo in Documentation/keys.txt

2007-07-29 Thread Satyam Sharma
[PATCH] Fix a typo in Documentation/keys.txt Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> Acked-by: David Howells <[EMAIL PROTECTED]> --- [ Previously sent on: June 9, 2007 ] Documentation/keys.txt |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -ruNp a/D

[PATCH v3 -mm 9/9] netconsole: Support dynamic reconfiguration using configfs

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [9/9] netconsole: Support dynamic reconfiguration using configfs This patch introduces support for dynamic reconfiguration (adding, removing and/or modifying parameters of netconsole targets at runtime) using a userspace interface exported via co

[PATCH v3 -mm 6/9] netconsole: Introduce netconsole_target

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [6/9] netconsole: Introduce netconsole_target Introduce a wrapper structure over netpoll to represent logging targets configured in netconsole. This will get extended with other members in further patches. This is done independent of the (to-be-intr

[PATCH v3 -mm 7/9] netconsole: Introduce netconsole_netdev_notifier

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [7/9] netconsole: Introduce netconsole_netdev_notifier To update fields of underlying netpoll structure at runtime on corresponding NETDEV_CHANGEADDR or NETDEV_CHANGENAME notifications. ioctl(SIOCSIFHWADDR or SIOCSIFNAME) could be used to

[PATCH v3 -mm 8/9] netconsole: Support multiple logging targets

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [8/9] netconsole: Support multiple logging targets This patch introduces support for multiple targets, independent of CONFIG_NETCONSOLE_DYNAMIC -- this is useful even in the default case and (including the infrastructure introduced in previous p

[PATCH v3 -mm 3/9] netconsole: Simplify boot/module option setup logic

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [3/9] netconsole: Simplify boot/module option setup logic Presently, boot/module parameters are set up quite differently for the case of built-in netconsole (__setup() -> obsolete_checksetup() -> netpoll_parse_options() -> strl

[PATCH v3 -mm 4/9] netconsole: Use netif_running() in write_msg()

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [4/9] netconsole: Use netif_running() in write_msg() Avoid unnecessarily disabling interrupts and calling netpoll_send_udp() if the corresponding local interface is not up. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]> Acked-by: Keiichi

[PATCH v3 -mm 5/9] netconsole: Add some useful tips to documentation

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [5/9] netconsole: Add some useful tips to documentation Add some useful general-purpose tips. Also suggest solution for the frequent problem of console loglevel set too low numerically (i.e. for high priority messages only) on the sender. Sign

[PATCH v3 -mm 2/9] netconsole: Remove bogus check

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [2/9] netconsole: Remove bogus check The (!np.dev) check in write_msg() is bogus (always false), because: np.dev is set by netpoll_setup(), which is called by init_netconsole() before register_console(), so write_msg() cannot be triggered

[PATCH v3 -mm 1/9] netconsole: Cleanups, codingstyle, prettyfication

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [1/9] netconsole: Cleanups, codingstyle, prettyfication (1) Remove unwanted headers. (2) Mark __init and __exit as appropriate. (3) Various trivial codingstyle and prettification stuff. Signed-off-by: Satyam Sharma <[EMAIL PROTECTED]>

[PATCH v3 -mm 0/9] netconsole: Multiple targets and dynamic reconfigurability

2007-07-29 Thread Satyam Sharma
[0/9] netconsole: Multiple targets and dynamic reconfigurability This is v3 of the patchset, the previous versions are available at: http://lkml.org/lkml/2007/7/4/107 http://lkml.org/lkml/2007/7/10/78 Diffed against 2.6.23-rc1-git6 (6c8dca5d as of writing), but applies successfully to

Re: [PATCH] Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n

2007-07-29 Thread Satyam Sharma
On 7/30/07, Rusty Russell <[EMAIL PROTECTED]> wrote: > [...] > Gabriel C reports lguest doesn't compile with CONFIG_BLOCK=n. Fix > this by introducing a config var for the block device, which depends > on LGUEST && BLOCK. Do the same for the net driver, rather then > depending gratuitously on

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Satyam Sharma
Hi Michael, On Sun, 29 Jul 2007, Michael Buesch wrote: > On Sunday 29 July 2007 20:34:46 Satyam Sharma wrote: > > (2) !(dev->flags & IFF_UP) is bogus because the functions of this ioctl > > can (and should) be allowed even when the interface is not up and runnin

Re: [ck] Re: Linus 2.6.23-rc1

2007-07-29 Thread Satyam Sharma
Hi Martin, On Sun, 29 Jul 2007, Martin Steigerwald wrote: > Am Sonntag 29 Juli 2007 schrieb Sam Ravnborg: > > On Sun, Jul 29, 2007 at 12:56:28PM +0200, Martin Steigerwald wrote: > > > Am Sonntag 29 Juli 2007 schrieb Sam Ravnborg: > > > > > I > > > > > actually also think that the communication

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Satyam Sharma
driver (sb1000_dev_ioctl): (1) !dev condition is always false -- this function cannot be called with NULL net_device. (2) !(dev->flags & IFF_UP) is bogus because the functions of this ioctl can (and should) be allowed even when the interface is not up and running. So let's remove these checks.

Re: [linux-usb-devel] [PATCH] USB Pegasus driver - avoid a potential NULL pointer dereference.

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Oliver Neukum wrote: > Am Sonntag 29 Juli 2007 schrieb Jesper Juhl: > > On 29/07/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > On 7/29/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > > > Hello

Re: [linux-usb-devel] [PATCH] USB Pegasus driver - avoid a potential NULL pointer dereference.

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Oliver Neukum wrote: Am Sonntag 29 Juli 2007 schrieb Jesper Juhl: On 29/07/07, Satyam Sharma [EMAIL PROTECTED] wrote: Hi, On 7/29/07, Jesper Juhl [EMAIL PROTECTED] wrote: Hello, This patch makes sure we don't dereference a NULL pointer in drivers

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Satyam Sharma
condition is always false -- this function cannot be called with NULL net_device. (2) !(dev-flags IFF_UP) is bogus because the functions of this ioctl can (and should) be allowed even when the interface is not up and running. So let's remove these checks. Signed-off-by: Satyam Sharma [EMAIL PROTECTED] Cc

Re: [ck] Re: Linus 2.6.23-rc1

2007-07-29 Thread Satyam Sharma
Hi Martin, On Sun, 29 Jul 2007, Martin Steigerwald wrote: Am Sonntag 29 Juli 2007 schrieb Sam Ravnborg: On Sun, Jul 29, 2007 at 12:56:28PM +0200, Martin Steigerwald wrote: Am Sonntag 29 Juli 2007 schrieb Sam Ravnborg: I actually also think that the communication between Ingo and

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-29 Thread Satyam Sharma
Hi Michael, On Sun, 29 Jul 2007, Michael Buesch wrote: On Sunday 29 July 2007 20:34:46 Satyam Sharma wrote: (2) !(dev-flags IFF_UP) is bogus because the functions of this ioctl can (and should) be allowed even when the interface is not up and running. Are you _sure_? This function does

Re: [PATCH] Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n

2007-07-29 Thread Satyam Sharma
On 7/30/07, Rusty Russell [EMAIL PROTECTED] wrote: [...] Gabriel C reports lguest doesn't compile with CONFIG_BLOCK=n. Fix this by introducing a config var for the block device, which depends on LGUEST BLOCK. Do the same for the net driver, rather then depending gratuitously on CONFIG_NET.

[PATCH v3 -mm 0/9] netconsole: Multiple targets and dynamic reconfigurability

2007-07-29 Thread Satyam Sharma
[0/9] netconsole: Multiple targets and dynamic reconfigurability This is v3 of the patchset, the previous versions are available at: http://lkml.org/lkml/2007/7/4/107 http://lkml.org/lkml/2007/7/10/78 Diffed against 2.6.23-rc1-git6 (6c8dca5d as of writing), but applies successfully to

[PATCH v3 -mm 1/9] netconsole: Cleanups, codingstyle, prettyfication

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [1/9] netconsole: Cleanups, codingstyle, prettyfication (1) Remove unwanted headers. (2) Mark __init and __exit as appropriate. (3) Various trivial codingstyle and prettification stuff. Signed-off-by: Satyam Sharma [EMAIL PROTECTED] Signed-off-by: Keiichi

[PATCH v3 -mm 2/9] netconsole: Remove bogus check

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [2/9] netconsole: Remove bogus check The (!np.dev) check in write_msg() is bogus (always false), because: np.dev is set by netpoll_setup(), which is called by init_netconsole() before register_console(), so write_msg() cannot be triggered unless

[PATCH v3 -mm 3/9] netconsole: Simplify boot/module option setup logic

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [3/9] netconsole: Simplify boot/module option setup logic Presently, boot/module parameters are set up quite differently for the case of built-in netconsole (__setup() - obsolete_checksetup() - netpoll_parse_options() - strlen(config) == 0 in init_netconsole

[PATCH v3 -mm 4/9] netconsole: Use netif_running() in write_msg()

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [4/9] netconsole: Use netif_running() in write_msg() Avoid unnecessarily disabling interrupts and calling netpoll_send_udp() if the corresponding local interface is not up. Signed-off-by: Satyam Sharma [EMAIL PROTECTED] Acked-by: Keiichi Kii [EMAIL

[PATCH v3 -mm 5/9] netconsole: Add some useful tips to documentation

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [5/9] netconsole: Add some useful tips to documentation Add some useful general-purpose tips. Also suggest solution for the frequent problem of console loglevel set too low numerically (i.e. for high priority messages only) on the sender. Signed-off

[PATCH v3 -mm 6/9] netconsole: Introduce netconsole_target

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [6/9] netconsole: Introduce netconsole_target Introduce a wrapper structure over netpoll to represent logging targets configured in netconsole. This will get extended with other members in further patches. This is done independent of the (to-be-introduced

[PATCH v3 -mm 7/9] netconsole: Introduce netconsole_netdev_notifier

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [7/9] netconsole: Introduce netconsole_netdev_notifier To update fields of underlying netpoll structure at runtime on corresponding NETDEV_CHANGEADDR or NETDEV_CHANGENAME notifications. ioctl(SIOCSIFHWADDR or SIOCSIFNAME) could be used to change

[PATCH v3 -mm 8/9] netconsole: Support multiple logging targets

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [8/9] netconsole: Support multiple logging targets This patch introduces support for multiple targets, independent of CONFIG_NETCONSOLE_DYNAMIC -- this is useful even in the default case and (including the infrastructure introduced in previous patches

[PATCH v3 -mm 9/9] netconsole: Support dynamic reconfiguration using configfs

2007-07-29 Thread Satyam Sharma
From: Satyam Sharma [EMAIL PROTECTED] [9/9] netconsole: Support dynamic reconfiguration using configfs This patch introduces support for dynamic reconfiguration (adding, removing and/or modifying parameters of netconsole targets at runtime) using a userspace interface exported via configfs

[PATCH][resend] Fix a typo in Documentation/keys.txt

2007-07-29 Thread Satyam Sharma
[PATCH] Fix a typo in Documentation/keys.txt Signed-off-by: Satyam Sharma [EMAIL PROTECTED] Acked-by: David Howells [EMAIL PROTECTED] --- [ Previously sent on: June 9, 2007 ] Documentation/keys.txt |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -ruNp a/Documentation

Re: [PATCH 1/5] Use mutex instead of semaphore in the Host AP driver

2007-07-29 Thread Satyam Sharma
On Mon, 30 Jul 2007, Michael Buesch wrote: On Sunday 29 July 2007 23:34, Matthias Kaehlcke wrote: The Host AP driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] [ Something seems to have gone wrong

Re: [PATCH 2/5] Use mutex instead of semaphore in the OnStream SCSI Tape driver

2007-07-29 Thread Satyam Sharma
(-ERESTARTSYS); Same here. Reviewed-by: Satyam Sharma [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 3/5] Use mutex instead of semaphore in the SCSI Tape driver

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Matthias Kaehlcke wrote: The SCSI Tape driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Reviewed-by: Satyam Sharma [EMAIL PROTECTED] - To unsubscribe from this list: send the line

Re: [PATCH 1/5] Use mutex instead of semaphore in the Host AP driver

2007-07-29 Thread Satyam Sharma
Whoops ... On Mon, 30 Jul 2007, Satyam Sharma wrote: On Mon, 30 Jul 2007, Michael Buesch wrote: On Sunday 29 July 2007 23:34, Matthias Kaehlcke wrote: The Host AP driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias

Re: [PATCH 4/5] Use mutex instead of semaphore in ISDN subsystem common functions

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Matthias Kaehlcke wrote: The ISDN subsystem common functions use a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Reviewed-by: Satyam Sharma [EMAIL PROTECTED] - To unsubscribe from this list

Re: [PATCH 5/5] Use mutex instead of semaphore in the DVB frontend tuning interface

2007-07-29 Thread Satyam Sharma
On Sun, 29 Jul 2007, Matthias Kaehlcke wrote: The DVB frontend tuning interface uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Reviewed-by: Satyam Sharma [EMAIL PROTECTED] - To unsubscribe from this list

Re: LinuxPPS spinlocks

2007-07-29 Thread Satyam Sharma
Hi Rodolfo, On Sun, 29 Jul 2007, Rodolfo Giometti wrote: On Sat, Jul 28, 2007 at 02:17:24AM +0530, Satyam Sharma wrote: I only glanced through the code, so could be wrong, but I noticed that the only global / shared data you have in there is a global pps_source array of pps_s structs

Re: LinuxPPS spinlocks

2007-07-29 Thread Satyam Sharma
Hi, On Sun, 29 Jul 2007, Rodolfo Giometti wrote: On Sat, Jul 28, 2007 at 05:11:17AM +0530, Satyam Sharma wrote: [ Also, have you considered making pps_source a list and not an array? It'll help you lose a whole lot of MAX_SOURCES, pps_is_allocated, etc kind of gymnastics

Re: LinuxPPS spinlocks

2007-07-29 Thread Satyam Sharma
Hi Rodolfo, On Sun, 29 Jul 2007, Rodolfo Giometti wrote: On Sat, Jul 28, 2007 at 05:11:17AM +0530, Satyam Sharma wrote: Take the race between the time_pps_setparams() syscall and a concurrent pps_event() from an interrupt for instance. From sys_time_pps_setparams, the parameters

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-28 Thread Satyam Sharma
On Sun, 29 Jul 2007, Domen Puncer wrote: > On 29/07/07 00:02 +0200, Jesper Juhl wrote: > > Hi, > > > > Here's a small patch, prompted by a find by the Coverity checker, > > that removes a potential NULL pointer dereference from > > drivers/net/sb1000.c::sb1000_dev_ioctl(). > > The checker

Re: [PATCH] USB Pegasus driver - avoid a potential NULL pointer dereference.

2007-07-28 Thread Satyam Sharma
Hi, On 7/29/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > Hello, > > This patch makes sure we don't dereference a NULL pointer in > drivers/net/usb/pegasus.c::write_bulk_callback() in the initial > struct net_device *net = pegasus->net; assignment. > The existing code checks if 'pegasus' is NULL

Re: [PATCH] USB Pegasus driver - avoid a potential NULL pointer dereference.

2007-07-28 Thread Satyam Sharma
Hi, On 7/29/07, Jesper Juhl [EMAIL PROTECTED] wrote: Hello, This patch makes sure we don't dereference a NULL pointer in drivers/net/usb/pegasus.c::write_bulk_callback() in the initial struct net_device *net = pegasus-net; assignment. The existing code checks if 'pegasus' is NULL and bails

Re: [PATCH] sb1000: prevent a potential NULL pointer dereference in sb1000_dev_ioctl()

2007-07-28 Thread Satyam Sharma
On Sun, 29 Jul 2007, Domen Puncer wrote: On 29/07/07 00:02 +0200, Jesper Juhl wrote: Hi, Here's a small patch, prompted by a find by the Coverity checker, that removes a potential NULL pointer dereference from drivers/net/sb1000.c::sb1000_dev_ioctl(). The checker spotted that we

Re: LinuxPPS & spinlocks

2007-07-27 Thread Satyam Sharma
Hi, On 7/28/07, Satyam Sharma <[EMAIL PROTECTED]> wrote: > Hi Rodolfo, > > On 7/28/07, Rodolfo Giometti <[EMAIL PROTECTED]> wrote: > > On Fri, Jul 27, 2007 at 01:40:14PM -0600, Chris Friesen wrote: > > > > > > My point is that the lock

Re: LinuxPPS & spinlocks

2007-07-27 Thread Satyam Sharma
Hi Rodolfo, On 7/28/07, Rodolfo Giometti <[EMAIL PROTECTED]> wrote: > On Fri, Jul 27, 2007 at 01:40:14PM -0600, Chris Friesen wrote: > > > > My point is that the lock should be used to protect specific data. Thus, it > > would be more correct to say, "spinlock foo is taken because > >

Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...?

2007-07-27 Thread Satyam Sharma
On 7/27/07, Alan Cox <[EMAIL PROTECTED]> wrote: > > Maybe I should resurrect it & send it out... Hmm, something that hooks in not only at do_IRQ time (as the present in-mainline stackoverflow check thing)? > > (FWIW I think I recall that the warning itself sometimes tipped the > > scales enough

Re: NFSv4 poops itself

2007-07-27 Thread Satyam Sharma
On 7/27/07, Marc Dietrich <[EMAIL PROTECTED]> wrote: > > Hi, > > Am Friday 27 July 2007 14:53 schrieben Sie: > > Background: > > > > Server: x86-64 dual core Intel, kernel 2.6.23-rc1 (my home fileserver) > > Exporting NFS/NFSv4 mounts. Client count: 1 Uptime: 4 days > > > > Client: x86-64

Re: NFSv4 poops itself

2007-07-27 Thread Satyam Sharma
On 7/27/07, Marc Dietrich [EMAIL PROTECTED] wrote: Hi, Am Friday 27 July 2007 14:53 schrieben Sie: Background: Server: x86-64 dual core Intel, kernel 2.6.23-rc1 (my home fileserver) Exporting NFS/NFSv4 mounts. Client count: 1 Uptime: 4 days Client: x86-64 dual core Intel,

Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...?

2007-07-27 Thread Satyam Sharma
On 7/27/07, Alan Cox [EMAIL PROTECTED] wrote: Maybe I should resurrect it send it out... Hmm, something that hooks in not only at do_IRQ time (as the present in-mainline stackoverflow check thing)? (FWIW I think I recall that the warning itself sometimes tipped the scales enough on 4k

Re: LinuxPPS spinlocks

2007-07-27 Thread Satyam Sharma
Hi Rodolfo, On 7/28/07, Rodolfo Giometti [EMAIL PROTECTED] wrote: On Fri, Jul 27, 2007 at 01:40:14PM -0600, Chris Friesen wrote: My point is that the lock should be used to protect specific data. Thus, it would be more correct to say, spinlock foo is taken because pps_register_source()

Re: LinuxPPS spinlocks

2007-07-27 Thread Satyam Sharma
Hi, On 7/28/07, Satyam Sharma [EMAIL PROTECTED] wrote: Hi Rodolfo, On 7/28/07, Rodolfo Giometti [EMAIL PROTECTED] wrote: On Fri, Jul 27, 2007 at 01:40:14PM -0600, Chris Friesen wrote: My point is that the lock should be used to protect specific data. Thus, it would be more

Re: [PATCH 4/7] eCryptfs: Comments for some structs

2007-07-25 Thread Satyam Sharma
Trivial nits ... On 7/26/07, Michael Halcrow <[EMAIL PROTECTED]> wrote: [...] +/** + * ecryptfs_global_auth_tok structs refer to authentication token keys + * in the user keyring that apply to newly created files. A list of + * these objects hangs off of the mount_crypt_stat struct for any + *

[PATCH -mm] dma: INTEL_IOATDMA build fix

2007-07-25 Thread Satyam Sharma
ko] undefined! ERROR: "unregister_dca_provider" [drivers/dma/ioatdma.ko] undefined! ERROR: "free_dca_provider" [drivers/dma/ioatdma.ko] undefined! make[1]: *** [__modpost] Error 1 "select" seems ok because CONFIG_DCA looks library-like and doesn't itself depend upon anything els

Re: [ck] Re: -mm merge plans for 2.6.23

2007-07-25 Thread Satyam Sharma
Hi Ingo, [ Going off-topic, nothing related to swap/prefetch/etc. Just getting a hang of how development goes on here ... ] On 7/25/07, Ingo Molnar <[EMAIL PROTECTED]> wrote: * Rene Herman <[EMAIL PROTECTED]> wrote: > Nick Piggin is the person to convince it seems and if I've read things >

Re: [PATCH] Print utsname on Oops on all architectures

2007-07-25 Thread Satyam Sharma
On 7/25/07, Andrew Morton <[EMAIL PROTECTED]> wrote: On Thu, 5 Jul 2007 18:52:27 -0700 (PDT) Joshua Wise <[EMAIL PROTECTED]> wrote: > Background: > This patch is a follow-on to "Info dump on Oops or panic()" [1]. > > On some architectures, the kernel printed some information on the running >

Re: [DRIVER SUBMISSION] DRBD wants to go mainline

2007-07-25 Thread Satyam Sharma
On 7/25/07, Lars Ellenberg <[EMAIL PROTECTED]> wrote: On Wed, Jul 25, 2007 at 04:41:53AM +0530, Satyam Sharma wrote: > [...] > > But where does the "send" come into the picture over here -- a send > won't block forever, so I don't foresee any issues whatsoever

Re: [DRIVER SUBMISSION] DRBD wants to go mainline

2007-07-25 Thread Satyam Sharma
On 7/25/07, Lars Ellenberg [EMAIL PROTECTED] wrote: On Wed, Jul 25, 2007 at 04:41:53AM +0530, Satyam Sharma wrote: [...] But where does the send come into the picture over here -- a send won't block forever, so I don't foresee any issues whatsoever w.r.t. kthreads conversion for that. [ BTW

Re: [PATCH] Print utsname on Oops on all architectures

2007-07-25 Thread Satyam Sharma
On 7/25/07, Andrew Morton [EMAIL PROTECTED] wrote: On Thu, 5 Jul 2007 18:52:27 -0700 (PDT) Joshua Wise [EMAIL PROTECTED] wrote: Background: This patch is a follow-on to Info dump on Oops or panic() [1]. On some architectures, the kernel printed some information on the running kernel,

Re: [ck] Re: -mm merge plans for 2.6.23

2007-07-25 Thread Satyam Sharma
Hi Ingo, [ Going off-topic, nothing related to swap/prefetch/etc. Just getting a hang of how development goes on here ... ] On 7/25/07, Ingo Molnar [EMAIL PROTECTED] wrote: * Rene Herman [EMAIL PROTECTED] wrote: Nick Piggin is the person to convince it seems and if I've read things right

Re: [PATCH 4/7] eCryptfs: Comments for some structs

2007-07-25 Thread Satyam Sharma
Trivial nits ... On 7/26/07, Michael Halcrow [EMAIL PROTECTED] wrote: [...] +/** + * ecryptfs_global_auth_tok structs refer to authentication token keys + * in the user keyring that apply to newly created files. A list of + * these objects hangs off of the mount_crypt_stat struct for any + *

[PATCH -mm] dma: INTEL_IOATDMA build fix

2007-07-25 Thread Satyam Sharma
: unregister_dca_provider [drivers/dma/ioatdma.ko] undefined! ERROR: free_dca_provider [drivers/dma/ioatdma.ko] undefined! make[1]: *** [__modpost] Error 1 select seems ok because CONFIG_DCA looks library-like and doesn't itself depend upon anything else. Signed-off-by: Satyam Sharma [EMAIL PROTECTED] --- drivers

Re: crash with 2.6.22.1 crash:ll_rw_blk.c blk_remove_plug()

2007-07-24 Thread Satyam Sharma
On 7/23/07, Jens Axboe <[EMAIL PROTECTED]> wrote: On Sun, Jul 22 2007, Satyam Sharma wrote: > Hi Walter, > > Thanks for reporting this. > > On 7/22/07, walter harms <[EMAIL PROTECTED]> wrote: >> hello all, >> on my asus notebook tm620 there is a crash wit

Re: [DRIVER SUBMISSION] DRBD wants to go mainline

2007-07-24 Thread Satyam Sharma
Hi Lars, On 7/24/07, Lars Ellenberg <[EMAIL PROTECTED]> wrote: On Mon, Jul 23, 2007 at 07:10:58PM +0530, Satyam Sharma wrote: > On 7/23/07, Lars Ellenberg <[EMAIL PROTECTED]> wrote: > >On Sun, Jul 22, 2007 at 09:32:02PM -0400, Kyle Moffett wrote: > >[...] > >&

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Linus Torvalds wrote: > On Tue, 24 Jul 2007, Satyam Sharma wrote: > > > > Looks like when you said "CPU memory barrier extends to all memory > > references" you were probably referring to a _given_ CPU ... yes, > > that statement is corr

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > > > For the purpose of this discussion (Linux memory > > > barrier semantics, on WB memory), it is true of CPU > > > and compiler barriers. > > > > On later Intel processors, if the memory address range being referenced > > (and say written to) by the

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > > > Satyam Sharma wrote: > > > > > Consider this (the above two functions exist > > only for clear_bit(), > > > > the atomic variant, as you already know), the > > _only_ memory reference > > > >

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-24 Thread Satyam Sharma
Hi David, On Tue, 24 Jul 2007, David Howells wrote: > Satyam Sharma <[EMAIL PROTECTED]> wrote: > > > OTOH, as per Linus' review it seems we can drop the "memory" clobber > > and specify the output operand for the extended asm as "+m". But I > >

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > Satyam Sharma wrote: > > On Tue, 24 Jul 2007, Nick Piggin wrote: > > > Satyam Sharma wrote: > > > [...] > > > > So let's make these proper no-ops, because that's exactly what we > > > &g

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > > > [...] > > > > > > __test_and_change_bit is one that you could remove the memory clobber > > > from. > > > > Yes, for the atomic versions we don't care if we're asking gcc to > > generate trashy code (even though I'd have wanted to only disallow > >

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions > > > > > From Documentation/atomic_ops.txt, those archs that r

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [6/8] i386: bitops: Don't mark memory as clobbered unnecessarily > > > > The goal is to let gcc generate good, beautiful, optimi

Re: [PATCH 4/8] i386: bitops: Kill volatile-casting of memory addresses

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: > Linus Torvalds wrote: > > > > On Mon, 23 Jul 2007, Satyam Sharma wrote: > > > > > > > [4/8] i386: bitops: Kill volatile-casting of memory addresses > > > > > > This is wrong. > > > >

Re: [PATCH 4/8] i386: bitops: Kill volatile-casting of memory addresses

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: Linus Torvalds wrote: On Mon, 23 Jul 2007, Satyam Sharma wrote: [4/8] i386: bitops: Kill volatile-casting of memory addresses This is wrong. The const volatile is so that you can pass an arbitrary pointer. The only kind

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: Satyam Sharma wrote: From: Satyam Sharma [EMAIL PROTECTED] [6/8] i386: bitops: Don't mark memory as clobbered unnecessarily The goal is to let gcc generate good, beautiful, optimized code. But test_and_set_bit, test_and_clear_bit

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: Satyam Sharma wrote: From: Satyam Sharma [EMAIL PROTECTED] [8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions From Documentation/atomic_ops.txt, those archs that require explicit memory barriers around clear_bit() must also

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: [...] __test_and_change_bit is one that you could remove the memory clobber from. Yes, for the atomic versions we don't care if we're asking gcc to generate trashy code (even though I'd have wanted to only disallow problematic

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: Satyam Sharma wrote: On Tue, 24 Jul 2007, Nick Piggin wrote: Satyam Sharma wrote: [...] So let's make these proper no-ops, because that's exactly what we require these to be on the i386 platform. No. clear_bit is not a compiler

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-24 Thread Satyam Sharma
Hi David, On Tue, 24 Jul 2007, David Howells wrote: Satyam Sharma [EMAIL PROTECTED] wrote: OTOH, as per Linus' review it seems we can drop the memory clobber and specify the output operand for the extended asm as +m. But I must admit I didn't quite understand that at all. As I

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: Satyam Sharma wrote: Consider this (the above two functions exist only for clear_bit(), the atomic variant, as you already know), the _only_ memory reference we care about is that of the address of the passed bit-string

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Nick Piggin wrote: For the purpose of this discussion (Linux memory barrier semantics, on WB memory), it is true of CPU and compiler barriers. On later Intel processors, if the memory address range being referenced (and say written to) by the (locked)

Re: [PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-24 Thread Satyam Sharma
On Tue, 24 Jul 2007, Linus Torvalds wrote: On Tue, 24 Jul 2007, Satyam Sharma wrote: Looks like when you said CPU memory barrier extends to all memory references you were probably referring to a _given_ CPU ... yes, that statement is correct in that case. No. CPU memory barriers

Re: [DRIVER SUBMISSION] DRBD wants to go mainline

2007-07-24 Thread Satyam Sharma
Hi Lars, On 7/24/07, Lars Ellenberg [EMAIL PROTECTED] wrote: On Mon, Jul 23, 2007 at 07:10:58PM +0530, Satyam Sharma wrote: On 7/23/07, Lars Ellenberg [EMAIL PROTECTED] wrote: On Sun, Jul 22, 2007 at 09:32:02PM -0400, Kyle Moffett wrote: [...] Don't use signals between kernel threads, use

Re: crash with 2.6.22.1 crash:ll_rw_blk.c blk_remove_plug()

2007-07-24 Thread Satyam Sharma
On 7/23/07, Jens Axboe [EMAIL PROTECTED] wrote: On Sun, Jul 22 2007, Satyam Sharma wrote: Hi Walter, Thanks for reporting this. On 7/22/07, walter harms [EMAIL PROTECTED] wrote: hello all, on my asus notebook tm620 there is a crash with 2.6.22 and 2.6.21 Did this happen when you were

Re: [PATCH 2/8] i386: bitops: Rectify bogus "Ir" constraints

2007-07-23 Thread Satyam Sharma
On Mon, 23 Jul 2007, H. Peter Anvin wrote: > Linus Torvalds wrote: > > > > On Mon, 23 Jul 2007, Satyam Sharma wrote: > >> * The "I" constraint modifier is applicable only to immediate-value > >> operands, > >> and combining it with "r&

Re: [PATCH 2/8] i386: bitops: Rectify bogus "Ir" constraints

2007-07-23 Thread Satyam Sharma
On Mon, 23 Jul 2007, Linus Torvalds wrote: > On Mon, 23 Jul 2007, Satyam Sharma wrote: > > > > * The "I" constraint modifier is applicable only to immediate-value > > operands, > > and combining it with "r" is bogus. > > This is wrong t

Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__ __volatile__

2007-07-23 Thread Satyam Sharma
On Mon, 23 Jul 2007, Jeremy Fitzhardinge wrote: > I'm not quite sure what your point is. Could be a case of terminology confusion ... > The paragraph you quoted is > pretty explicit in saying that volatile doesn't prevent an "asm > volatile" from being interspersed with other code, and the

Re: [PATCH 3/8] i386: bitops: Rectify bogus "+m" constraints

2007-07-23 Thread Satyam Sharma
On Mon, 23 Jul 2007, Andi Kleen wrote: > On Monday 23 July 2007 18:05:43 Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [3/8] i386: bitops: Rectify bogus "+m" constraints > > > > From the gcc manual: > > > >

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-23 Thread Satyam Sharma
Hi, On Mon, 23 Jul 2007, Andi Kleen wrote: > > > Yes, but _that_ address (of the bit-string) is protected already -- by the > > implicit memory barrier due to the LOCK prefix. > > Compiler barrier != CPU barrier. Exactly, but the actual _synchronization_ in all users of the bitops API should

Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__ __volatile__

2007-07-23 Thread Satyam Sharma
Hi Jeremy, On Mon, 23 Jul 2007, Jeremy Fitzhardinge wrote: > Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [7/8] i386: bitops: Kill needless usage of __asm__ __volatile__ > > > > Another oddity I noticed in this file. The

Re: [PATCH 7/8] i386: bitops: Kill needless usage of __asm__ __volatile__

2007-07-23 Thread Satyam Sharma
Hi, On Mon, 23 Jul 2007, Andi Kleen wrote: > On Monday 23 July 2007 18:06:03 Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [7/8] i386: bitops: Kill needless usage of __asm__ __volatile__ > > > > Another oddity I noticed in t

Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

2007-07-23 Thread Satyam Sharma
Hi Andi, On Mon, 23 Jul 2007, Andi Kleen wrote: > On Monday 23 July 2007 18:05:58 Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [6/8] i386: bitops: Don't mark memory as clobbered unnecessarily > > > > The goal is to let gcc g

Re: [PATCH 2/8] i386: bitops: Rectify bogus "Ir" constraints

2007-07-23 Thread Satyam Sharma
Hi Andi, On Mon, 23 Jul 2007, Andi Kleen wrote: > On Monday 23 July 2007 18:05:38 Satyam Sharma wrote: > > From: Satyam Sharma <[EMAIL PROTECTED]> > > > > [2/8] i386: bitops: Rectify bogus "Ir" constraints > > > > The "I" cons

[PATCH 7/8] i386: bitops: Kill needless usage of __asm__ __volatile__

2007-07-23 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [7/8] i386: bitops: Kill needless usage of __asm__ __volatile__ Another oddity I noticed in this file. The semantics of __volatile__ when used to qualify inline __asm__ are that the compiler will not (1) elid, or, (2) reorder, or, (3) interspers

[PATCH 8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions

2007-07-23 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [8/8] i386: bitops: smp_mb__{before, after}_clear_bit() definitions >From Documentation/atomic_ops.txt, those archs that require explicit memory barriers around clear_bit() must also implement these two interfaces. However, for i386,

[PATCH 5/8] i386: bitops: Contain warnings fallout from the death of volatiles

2007-07-23 Thread Satyam Sharma
From: Satyam Sharma <[EMAIL PROTECTED]> [5/8] i386: bitops: Contain warnings fallout from the death of volatiles The wrappers below included from all over tree re-used "volatile" just because the bitops used them. With them killed, almost every file ends up crying about:

<    2   3   4   5   6   7   8   9   10   11   >