diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-02-25 22:22:50 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-02-25 22:22:50 -0800 |
| commit | 8244559fdb8a3a6aa407b2509a259b6f3e30d74b (patch) | |
| tree | 0a2e9edeaecb40b7af8cf9ff828f7e67e51c4486 /include | |
| parent | dd63f4c1098fc3d69ab16cc5c3efe9b56c36bd9d (diff) | |
[PATCH] PATCH 2/16: NFSD: BKL Removal: Lock export table
Change export table lock to (SMP safe) rwsemaphore
As a first step to removing the BKL from nfsd, this patch
changes the lock used for the export table to be a rwsem semaphore.
Previously it had the same functionality but depended on the BKL
for correctness.
As there is no "down_write_interruptible" this patch removes the
posibility of interrupting the write_lock request, but this should
never be needed anyway.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/nfsd/export.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h index 6f3e970f40d4..1125d2fa1cbf 100644 --- a/include/linux/nfsd/export.h +++ b/include/linux/nfsd/export.h @@ -87,8 +87,7 @@ struct svc_export { void nfsd_export_init(void); void nfsd_export_shutdown(void); void exp_readlock(void); -int exp_writelock(void); -void exp_unlock(void); +void exp_readunlock(void); struct svc_client * exp_getclient(struct sockaddr_in *sin); void exp_putclient(struct svc_client *clp); struct svc_export * exp_get(struct svc_client *clp, kdev_t dev, ino_t ino); |
