Query about Bio submission / Direct IO

2007-10-19 Thread Shreyansh Jain
Hi List, I have tried this on kernelnewbies but it seems I am not good at explaining well. trying here again. Question: Is there a limitation (some kind of caveat) when direct IO pages are added to a bio (multiple pages per bio)

Query about Bio submission / Direct IO

2007-10-19 Thread Shreyansh Jain
Hi List, I have tried this on kernelnewbies http://article.gmane.org/gmane.linux.kernel.kernelnewbies/23166 but it seems I am not good at explaining well. trying here again. Question: Is there a limitation (some kind of caveat) when direct IO pages are added to a bio (multiple pages per bio)

Re: try_module_get code understanding

2007-09-27 Thread Shreyansh Jain
Thanks for you reply, please see inline. Heiko Carstens de.ibm.com> writes: > [snip] > > static inline int try_module_get(struct module *module){ > > int ret = 1; <--- error case when !module > > if (module) { > > unsigned int cpu = get_cpu(); > > if

Re: try_module_get code understanding

2007-09-27 Thread Shreyansh Jain
Thanks for you reply, please see inline. Heiko Carstens heiko.carstens at de.ibm.com writes: [snip] static inline int try_module_get(struct module *module){ int ret = 1; --- error case when !module if (module) { unsigned int cpu = get_cpu(); if

try_module_get code understanding

2007-09-26 Thread Shreyansh Jain
Dear List, I agree that this issue certainly doesn't require to be in this list (rightful place being kernewbies) but I tried that and got no response - so trying my luck here. I was going through try_module_get function in include/linux/module.h file (2.6.22 stock kernel) - which is like:

try_module_get code understanding

2007-09-26 Thread Shreyansh Jain
Dear List, I agree that this issue certainly doesn't require to be in this list (rightful place being kernewbies) but I tried that and got no response - so trying my luck here. I was going through try_module_get function in include/linux/module.h file (2.6.22 stock kernel) - which is like: