[BUG] sleeping function called from invalid context at kernel/sched.c

2007-01-08 Thread Sumit Narayan
Hi, I am trying to do file write operations in a thread (filewrite()) initiated from a jprobe (fs_vfs_write()) set on kernel function (vfs_write()). Although the write operation succeed, I get this on my log: BUG: sleeping function called from invalid context at kernel/sched.c:3678

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-08 Thread Sumit Narayan
Asking for KFREE is as silly as asking for a macro to check if kmalloc succeeded for a pointer, else return ENOMEM. #define CKMALLOC(p,x) \ do { \ p = kmalloc(x, GFP_KERNEL); \ if(!p) return -ENOMEM; \ } while(0) On 1/8/07, Amit Choudhary <[EMAIL PROTECTED]> wrote: ---

Re: [PATCH] include/linux/slab.h: new KFREE() macro.

2007-01-08 Thread Sumit Narayan
Asking for KFREE is as silly as asking for a macro to check if kmalloc succeeded for a pointer, else return ENOMEM. #define CKMALLOC(p,x) \ do { \ p = kmalloc(x, GFP_KERNEL); \ if(!p) return -ENOMEM; \ } while(0) On 1/8/07, Amit Choudhary [EMAIL PROTECTED] wrote: --- Pekka

[BUG] sleeping function called from invalid context at kernel/sched.c

2007-01-08 Thread Sumit Narayan
Hi, I am trying to do file write operations in a thread (filewrite()) initiated from a jprobe (fs_vfs_write()) set on kernel function (vfs_write()). Although the write operation succeed, I get this on my log: BUG: sleeping function called from invalid context at kernel/sched.c:3678

Re: USB IDE Connector

2005-02-26 Thread Sumit Narayan
i, Feb 25, 2005 at 10:30:27AM +0530, Sumit Narayan wrote: > > Hi, > > > > I have an external IDE connector through USB port. Where could I get > > the exact point inside the kernel, from where I would get information > > such as Block No., Request size, partition detai

Re: USB IDE Connector

2005-02-26 Thread Sumit Narayan
at 10:30:27AM +0530, Sumit Narayan wrote: Hi, I have an external IDE connector through USB port. Where could I get the exact point inside the kernel, from where I would get information such as Block No., Request size, partition details for a particular request, _just_ before being sent

IDE via USB

2005-02-25 Thread Sumit Narayan
Hi, I have an external IDE connector through USB port. Where could I get the exact point inside the kernel, from where I would get information such as Block No., Request size, partition details for a particular request, _just_ before being sent to the disk. Like, for a normal IDE, I could gather

IDE via USB

2005-02-25 Thread Sumit Narayan
Hi, I have an external IDE connector through USB port. Where could I get the exact point inside the kernel, from where I would get information such as Block No., Request size, partition details for a particular request, _just_ before being sent to the disk. Like, for a normal IDE, I could gather

USB IDE Connector

2005-02-24 Thread Sumit Narayan
Hi, I have an external IDE connector through USB port. Where could I get the exact point inside the kernel, from where I would get information such as Block No., Request size, partition details for a particular request, _just_ before being sent to the disk. Like, for a normal IDE, I could gather

USB IDE Connector

2005-02-24 Thread Sumit Narayan
Hi, I have an external IDE connector through USB port. Where could I get the exact point inside the kernel, from where I would get information such as Block No., Request size, partition details for a particular request, _just_ before being sent to the disk. Like, for a normal IDE, I could gather