diff options
author | Pavel Machek <pavel@suse.cz> | 2009-04-03 03:58:41 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-03 06:05:02 +0400 |
commit | 1a2ad21128bb4eb79f3c05e5801edcc5ed3ef1d3 (patch) | |
tree | ba5845f5e7f225b427d4ce250b911b9303aa9511 /mm | |
parent | 1b0f7ffd0ea27cd3a0b9ca04e3df9522048c32a3 (diff) | |
download | linux-1a2ad21128bb4eb79f3c05e5801edcc5ed3ef1d3.tar.xz |
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.
[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: add missing return]
Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: Paul Clements <paul.clements@steeleye.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions