[lustre-devel] [PATCH 213/622] lustre: mdc: don't use ACL at setattr
James Simmons
jsimmons at infradead.org
Thu Feb 27 13:11:21 PST 2020
From: Alexander Boyko <c17825 at cray.com>
For ldiskfs with large_ea, EA max size is equal to 1MB.
At mdc_setattr ptlrpc reply size is 1.1MB and it is rounded
to 2MB. So REINT_SETATTR request takes about 2MB of memory at
client. For a MDS failover case many request stay at reply queue
and could lead to OOM.
The patch changes acl size to zero, cause server doesn't fill
acl for setattr request.
WC-bug-id: https://jira.whamcloud.com/browse/LU-11934
Lustre-commit: e7f6f870c356 ("LU-11934 mdc: don't use ACL at setattr")
Signed-off-by: Alexander Boyko <c17825 at cray.com>
Cray-bug-id: LUS-6938
Reviewed-on: https://review.whamcloud.com/34194
Reviewed-by: Andrew Perepechko <c17827 at cray.com>
Reviewed-by: Andriy Skulysh <c17819 at cray.com>
Reviewed-by: Patrick Farrell <pfarrell at whamcloud.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
fs/lustre/mdc/mdc_reint.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/fs/lustre/mdc/mdc_reint.c b/fs/lustre/mdc/mdc_reint.c
index 2611fc4..0e5f012 100644
--- a/fs/lustre/mdc/mdc_reint.c
+++ b/fs/lustre/mdc/mdc_reint.c
@@ -134,10 +134,8 @@ int mdc_setattr(struct obd_export *exp, struct md_op_data *op_data,
op_data->op_attr.ia_ctime.tv_sec);
mdc_setattr_pack(req, op_data, ea, ealen);
- req_capsule_set_size(&req->rq_pill, &RMF_ACL, RCL_SERVER,
- min_t(u32,
- req->rq_import->imp_connect_data.ocd_max_easize,
- XATTR_SIZE_MAX));
+ req_capsule_set_size(&req->rq_pill, &RMF_ACL, RCL_SERVER, 0);
+
ptlrpc_request_set_replen(req);
rc = mdc_reint(req, LUSTRE_IMP_FULL);
--
1.8.3.1
More information about the lustre-devel
mailing list