mbox series

[v6,0/2] ceph: wait async unlink to finish

Message ID 20220526011737.371483-1-xiubli@redhat.com
Headers show
Series ceph: wait async unlink to finish | expand

Message

Xiubo Li May 26, 2022, 1:17 a.m. UTC
V6:
- Remove the new d_compare() helper and export the d_same_name() instead
- Currently will use the EXPORT_SYMBOL_GPL instead.

V5:
- Fix the order of clearing the flag and hashtable

V4:
- Switch to use TASK_KILLABLE

V3:
- Removed WARN_ON_ONCE()/BUG_ON().
- Set the hashtable bit to 8.

V2:
- Add one dedicated spin lock to protect the list_add/del_rcu
- Other small fixes
- Fix the compile error from kernel test robot

Xiubo Li (2):
  fs/dcache: export d_same_name() helper
  ceph: wait the first reply of inflight async unlink

 fs/ceph/dir.c          | 79 +++++++++++++++++++++++++++++++++++++-----
 fs/ceph/file.c         |  6 +++-
 fs/ceph/mds_client.c   | 75 ++++++++++++++++++++++++++++++++++++++-
 fs/ceph/mds_client.h   |  1 +
 fs/ceph/super.c        |  3 ++
 fs/ceph/super.h        | 19 +++++++---
 fs/dcache.c            | 15 +++++---
 include/linux/dcache.h |  2 ++
 8 files changed, 180 insertions(+), 20 deletions(-)

Comments

Luis Chamberlain July 6, 2022, 9:57 p.m. UTC | #1
On Thu, May 26, 2022 at 09:17:36AM +0800, Xiubo Li wrote:
> Compare dentry name with case-exact name, return true if names
> are same, or false.
> 
> Reviewed-by: Jeff Layton <jlayton@kernel.org>
> Signed-off-by: Xiubo Li <xiubli@redhat.com>

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis
Xiubo Li July 7, 2022, 1:20 a.m. UTC | #2
On 7/7/22 5:57 AM, Luis Chamberlain wrote:
> On Thu, May 26, 2022 at 09:17:36AM +0800, Xiubo Li wrote:
>> Compare dentry name with case-exact name, return true if names
>> are same, or false.
>>
>> Reviewed-by: Jeff Layton <jlayton@kernel.org>
>> Signed-off-by: Xiubo Li <xiubli@redhat.com>
> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
>
>    Luis

Thanks Luis!

-- Xiubo

>