]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: convert nsm_mutex to a spinlock
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 20 Feb 2008 20:40:15 +0000 (15:40 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 23 Apr 2008 20:13:39 +0000 (16:13 -0400)
commitfa2f16fe1acf72f0df1d24de0fd7e29c8bb6f110
tree0465a155e03b97660d2f887e702b8f2917889c75
parentc9456bf0e16b3b02a320fcaa7cadae3d96caa909
lockd: convert nsm_mutex to a spinlock

There's no reason for a mutex here, except to allow an allocation under
the lock, which we can avoid with the usual trick of preallocating
memory for the new object and freeing it if it turns out to be
unnecessary.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/host.c