]> Git Repo - linux.git/commit
nbd: add locking to nbd_ioctl
authorPavel Machek <[email protected]>
Thu, 2 Apr 2009 23:58:41 +0000 (16:58 -0700)
committerLinus Torvalds <[email protected]>
Fri, 3 Apr 2009 02:05:02 +0000 (19:05 -0700)
commit1a2ad21128bb4eb79f3c05e5801edcc5ed3ef1d3
treeba5845f5e7f225b427d4ce250b911b9303aa9511
parent1b0f7ffd0ea27cd3a0b9ca04e3df9522048c32a3
nbd: add locking to nbd_ioctl

The code was written to rely on big kernel lock to protect it from races.
It mostly works when interface is not abused.

So this uses tx_lock to protect data structures from concurrent use
between ioctl and worker threads.

Next step will be moving from ioctl to unlocked_ioctl.

[[email protected]: coding-style fixes]
[[email protected]: add missing return]
Signed-off-by: Pavel Machek <[email protected]>
Acked-by: Paul Clements <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/block/nbd.c
This page took 0.055215 seconds and 4 git commands to generate.