Skip to content

locks: flock and lease related bugfixes, and remove i_flctx counters

Jeff Layton linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "locks: keep a count of locks on the flctx lists"fs/ceph/locks.c fs/cifs/file.c fs/locks.c +1 more+35 -380 replies
2/4locks: remove conditional lock release in middle of flock_lock_filefs/locks.c+0 -105 replies
3/4locks: when upgrading, don't remove old flock lock until replacing with new onefs/locks.c+17 -50 replies
4/4locks: only remove leases associated with the file being closedfs/locks.c+2 -10 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/4] locks: flock and lease related bugfixes, and remove i_flctx counters

This patchset should fix the problems that Linus spotted in the flock code yesterday, as well as another bug in the lease code that I spotted while patching those up.

It'll be interesting to see if this fixes the problem that Kirill reported yesterday. If these looks acceptable, then I can send another pull request or you can just use the one below.

------------------------[snip]---------------------------------- The following changes since commit 1fa185ebcbcefdc5229c783450c9f0439a69f0c1:

Merge tag 'cris-for-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris (2015-02-15 18:02:02 -0800)

are available in the git repository at:

git://git.samba.org/jlayton/linux.git tags/locks-v3.20-2

for you to fetch changes up to c07ef59a2e7f768ec39fb9c93419e27d09698e22:

locks: only remove leases associated with the file being closed (2015-02-17 06:59:42 -0500)

Jeff Layton (4):
Revert "locks: keep a count of locks on the flctx lists"
locks: remove conditional lock release in middle of flock_lock_file
locks: when upgrading, don't remove old flock lock until replacing
with new one
locks: only remove leases associated with the file being closed

 fs/ceph/locks.c    | 11 ++++++--
 fs/cifs/file.c     | 14 +++++++---
 fs/locks.c         | 78 ++++++++++++++++++++++++------------------------------
 include/linux/fs.h |  3 ---
 4 files changed, 53 insertions(+), 53 deletions(-)
Signature · 1 line
2.1.0