ceph: switch to use cap_delay_lock for the unlink delay list
JIRA: https://issues.redhat.com/browse/RHEL-32997
Conflicts: fs/ceph/caps.c, fs/ceph/mds_client.c:
- Minor conflicts due to missing unrelated upstream commit 38d46409c463 ("ceph: print cluster fsid and client global_id in all debug logs")
commit 17f8dc2db52185460f212052f3a692c1fdc167ba Author: Xiubo Li xiubli@redhat.com Date: Tue Apr 9 08:56:03 2024 +0800
ceph: switch to use cap_delay_lock for the unlink delay list
The same list item will be used in both cap_delay_list and
cap_unlink_delay_list, so it's buggy to use two different locks
to protect them.
Cc: stable@vger.kernel.org
Fixes: dbc347ef7f0c ("ceph: add ceph_cap_unlink_work to fire check_caps() immediately")
Link: https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/AODC76VXRAMXKLFDCTK4TKFDDPWUSCN5
Reported-by: Marc Ruhmann <ruhmann@luis.uni-hannover.de>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Tested-by: Marc Ruhmann <ruhmann@luis.uni-hannover.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Jay Shin jaeshin@redhat.com