mbox series

[0/3] fix potential infinite loop in debugfs_remove_recursive

Message ID 1573788472-87426-1-git-send-email-yukuai3@huawei.com (mailing list archive)
Headers show
Series fix potential infinite loop in debugfs_remove_recursive | expand

Message

Yu Kuai Nov. 15, 2019, 3:27 a.m. UTC
The first patch add a new enum type for 'dentry_d_lock_class'.The second
patch use the new enum type in 'simple_empty' to avoid confusion for
lockdep. The last patch fix potential infinite loop in
debugfs_remove_recursive by using 'simple_empty' instead of 'list_empty'.

yu kuai (3):
  dcache: add a new enum type for 'dentry_d_lock_class'
  fs/libfs.c: use 'spin_lock_nested' when taking 'd_lock' for dentry in
    simple_empty
  debugfs: fix potential infinite loop in debugfs_remove_recursive

 fs/debugfs/inode.c     | 7 +++++--
 fs/libfs.c             | 4 ++--
 include/linux/dcache.h | 3 ++-
 3 files changed, 9 insertions(+), 5 deletions(-)