lib/nfs/Connection: remove Mutex

All locks are currenly held from only a single thread (the IOThread)
and thus we don't need the Mutex.
This commit is contained in:
Max Kellermann
2014-10-01 22:15:06 +02:00
parent 0470f648c6
commit 10cc87e422
2 changed files with 12 additions and 18 deletions

@@ -22,7 +22,6 @@
#include "Lease.hxx"
#include "Cancellable.hxx"
#include "thread/Mutex.hxx"
#include "event/SocketMonitor.hxx"
#include "event/DeferredMonitor.hxx"
#include "util/Error.hxx"
@@ -64,8 +63,6 @@ class NfsConnection : SocketMonitor, DeferredMonitor {
nfs_context *context;
Mutex mutex;
typedef std::list<NfsLease *> LeaseList;
LeaseList new_leases, active_leases;