All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] d_unhashed fixes and cleanup
@ 2016-12-01  4:18 Alexey Lyashkov
  2016-12-01  4:18 ` [PATCH 1/2] Re introduces a DCACHE_DENTRY_UNHASHED flag Alexey Lyashkov
  2016-12-01  4:18 ` [PATCH 2/2] cleanup of d_unhashed usage Alexey Lyashkov
  0 siblings, 2 replies; 9+ messages in thread
From: Alexey Lyashkov @ 2016-12-01  4:18 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Andreas Dilger, Andrew Perepechko, Jan Kara, Al Viro

Re introduces a DCACHE_DENTRY_UNHASHED flag to solve a race with checking a
unhashed state vs rename. Bug found while a Cray Lustre testing but looks not a
FS specific, du comment in dcache.h 

> Any filesystem which supports nfsd_operations MUST have a lookup function which,
> if it finds a directory inode with a DCACHE_DISCONNECTED dentry, will d_move
> that dentry into place and return that dentry rather than the passed one, 
> typically using d_splice_alias. *

So potentially any FS will affected.

v3 fix build for Infiniband and powerpc platform

v2 avoid to use a sequence lock from d_unhashed check, due large number
problems while d_unhashed checked with any spinlock hold.

v1 inital version, sequence lock protection for d_unashed check.

---

Alexey Lyashkov (2):
      Re introduces a DCACHE_DENTRY_UNHASHED flag
      cleanup of d_unhashed usage.


 arch/powerpc/platforms/cell/spufs/inode.c          |    2 +
 drivers/infiniband/hw/qib/qib_fs.c                 |    2 +
 .../staging/lustre/lustre/llite/llite_internal.h   |    2 +
 fs/configfs/inode.c                                |    2 +
 fs/dcache.c                                        |   36 ++++++++++----------
 fs/nfs/dir.c                                       |    2 +
 include/linux/dcache.h                             |    6 ++-
 7 files changed, 27 insertions(+), 25 deletions(-)

--
Alexey

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-13  1:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01  4:18 [PATCH v3 0/2] d_unhashed fixes and cleanup Alexey Lyashkov
2016-12-01  4:18 ` [PATCH 1/2] Re introduces a DCACHE_DENTRY_UNHASHED flag Alexey Lyashkov
2016-12-01  8:15   ` Amir Goldstein
2016-12-01 10:03     ` Alexey Lyashkov
2016-12-01 11:23       ` Amir Goldstein
2016-12-08  2:32   ` Oleg Drokin
2016-12-08  5:16     ` Alexey Lyashkov
2016-12-13  1:44   ` Al Viro
2016-12-01  4:18 ` [PATCH 2/2] cleanup of d_unhashed usage Alexey Lyashkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.