Whamcloud - gitweb
LU-16872 lod: reset llc_ostlist when using O_APPEND stripes
authorThomas Bertschinger <bertschinger@lanl.gov>
Fri, 7 Jul 2023 14:57:40 +0000 (10:57 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:12:10 +0000 (16:12 +0000)
commite6081aa130661c2983a4764c2de6728e5713de10
tree07c699063de8803707143dc8100c8a6a7507ad8b
parent9cdd85898bda025c797bb1033cc09ad8130d5e46
LU-16872 lod: reset llc_ostlist when using O_APPEND stripes

Files created with O_APPEND can have special striping set with the
parameters mdd.*.append_stripe_count and mdd.*.append_pool, and
should not inherit a list of OSTs to use from a parent directory
when these parameters are set. However, if a file is created with
O_APPEND and its create is handled by a kernel thread that has
previously created a file with a default list of OSTs, then those
defaults were erroneously applied to the O_APPEND file. This can
lead to the create returning EINVAL or to a crash.

This commit ensures that llc_ostlist is cleared when a file is
created with special append stripes.

Lustre-change: https://review.whamcloud.com/51559
Lustre-commit: 766b35a9700f36aa08b652fa9d18b890d34bf4a5

Signed-off-by: Thomas Bertschinger <bertschinger@lanl.gov>
Change-Id: Ib2023e17c9ef31a2e029e09e67b257eb2c77b113
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52012
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_object.c