problem with ending requests asynchronously in my block device driver

2007-12-17 Thread a_kumar
Hi, I've a block device driver which does the following, Inside the request function I do something like this: request(fn) { while ((req = elv_next_request(q)) != NULL) { set up the request; spin_unlock_irq(q->queue_lock); call the transfer(set_up_req) function; spin_lock_

problem with ending requests asynchronously in my block device driver

2007-12-15 Thread a_kumar
Hi, I've a block device driver which does the following, Inside the request function I do something like this: request(fn) { while ((req = elv_next_request(q)) != NULL) { set up the request; spin_unlock_irq(q->queue_lock); call the transfer(set_up_req) function; spin_lock_

problem with ending requests asynchronously in my block device driver

2007-12-15 Thread a_kumar
Hi, I've a block device driver which does the following, Inside the request function I do something like this: request(fn) { while ((req = elv_next_request(q)) != NULL) { set up the request; spin_unlock_irq(q->queue_lock); call the transfer(set_up_req) function; sp

problem with ending requests asynchronously in my block device driver

2007-12-15 Thread a_kumar
Hi, I've a block device driver which does the following, Inside the request function I do something like this: request(fn) { while ((req = elv_next_request(q)) != NULL) { set up the request; spin_unlock_irq(q->queue_lock); call the transfer(set_up_req) function; sp

how to implement this logic?

2007-12-14 Thread a_kumar
Hi, I've a block device driver which does the following, Inside the request function I do something like this: request(fn) { while ((req = elv_next_request(q)) != NULL) { set up the request; spin_unlock_irq(q->queue_lock); call the transfer(set_up_req) function; spin_lock