From: Pavel Machek Date: Thu, 2 Apr 2009 23:58:41 +0000 (-0700) Subject: nbd: add locking to nbd_ioctl X-Git-Tag: v2.6.30-rc1~308 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a2ad21128bb4eb79f3c05e5801edcc5ed3ef1d3;p=pandora-kernel.git 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 Acked-by: Paul Clements Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed