Re: Correctly locking a Block Device Request Handler

2015-11-19 Thread Marcel Müller
On 11/18/2015 07:11 AM, Pranay Srivastava wrote: > Hi > > On Mon, Nov 16, 2015 at 10:02 PM, Marcel Müller wrote: >> Hello everyone, >> >> I'm currently writing a block device driver and got stuck at trying to >> understand how to correctly handle the locking >> in the reqfn one passes to `blk_in

Re: Correctly locking a Block Device Request Handler

2015-11-17 Thread Pranay Srivastava
Hi On Mon, Nov 16, 2015 at 10:02 PM, Marcel Müller wrote: > Hello everyone, > > I'm currently writing a block device driver and got stuck at trying to > understand how to correctly handle the locking > in the reqfn one passes to `blk_init_queue`. > > My code looks like this: > > static DEFINE

Correctly locking a Block Device Request Handler

2015-11-16 Thread Marcel Müller
Hello everyone, I'm currently writing a block device driver and got stuck at trying to understand how to correctly handle the locking in the reqfn one passes to `blk_init_queue`. My code looks like this: static DEFINE_SPINLOCK(rblk_lock); /* Code */ static void rblk_request_handler