Skip to content

nfs-utils: multithreaded mountd fixes

Ben Myers linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nfs-utils: remove xflock timeoutsupport/nfs/xio.c+1 -170 replies
2/3nfs-utils: dont leak fd in mountlist_listutils/mountd/rmtab.c+4 -10 replies
3/3nfs-utils: don't fdatasync the rmtabsupport/nfs/cacheio.c support/nfs/rmtab.c+20 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nfs-utils: multithreaded mountd fixes

Hey Steve,

The following fixes a problem with mountd where you get backed up behind the rmtab lock. It may have happened that an xflock timed out and stat failed so the filedescriptor was leaked in mountlist_list and the lock never released. Skipping the fdatasync has also helped performance-wise.

Tested very lightly on TOT and more heavily on 1.0.7 where this bug was discovered.

Thanks,
Ben

---

Ben Myers (3):
nfs-utils: remove xflock timeout
nfs-utils: dont leak fd in mountlist_list
nfs-utils: don't fdatasync the rmtab

 support/nfs/cacheio.c |    5 ++---
 support/nfs/rmtab.c   |   23 ++++++++++++++++++-----
 support/nfs/xio.c     |   18 +-----------------
 utils/mountd/rmtab.c  |    5 ++++-
 4 files changed, 25 insertions(+), 26 deletions(-)