Whamcloud - gitweb
LU-15171 osd-ldiskfs: xattr_sem locking missing dquot_transfer
authorAndrew Perepechko <andrew.perepechko@hpe.com>
Sun, 31 Oct 2021 20:03:30 +0000 (23:03 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Dec 2021 04:46:49 +0000 (04:46 +0000)
commit967d47d22a59a7cdce54315eea17c394b0737225
tree0e2b9d9f3653fc8b22e51d2a091396a7cd324c23
parent31e047125e47f2cfe056a139bfd490042fa59a29
LU-15171 osd-ldiskfs: xattr_sem locking missing dquot_transfer

Kernel commit 7a9ca53ae (~v4.13) added the requirement for xattr_sem
locking when calling *dquot_transfer. As of now, in rare cases, it is
possible that we can modify inode xattrs and perform their consistency
checks in parallel, which can fail.

Lustre-change: https://review.whamcloud.com/45424
Lustre-commit: e6c7fcdaf40b130c39af2e3ee8b108c6e31a8ca8

Change-Id: I041694e30ce6c8398864c0ad57671df0bffd2f52
Signed-off-by: Andrew Perepechko <andrew.perepechko@hpe.com>
HPE-bug-id: LUS-10549
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45750
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h