Whamcloud - gitweb
LU-15702 lov: remove lo_trunc_stripeno 40/46940/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Mon, 28 Mar 2022 17:24:54 +0000 (12:24 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 2 Apr 2022 06:58:11 +0000 (06:58 +0000)
commit42a6d1fdb6818f1b399dd1c1c540f003012a3b48
treeba0e1fceb90cda7f46590d31872f742afb0367ff
parent8e8bbc05d1083a12447b87e9bfc3675042325d69
LU-15702 lov: remove lo_trunc_stripeno

Remove the lo_trunc_stripeno member of struct lov_layout_raid0 and add
an lis_trunc_stripe_index array to struct lov_io. This makes the
truncate stripe index information belong to the IO and not to the
concurrently accessed object. This is needed because we do not have
locking that protects it from its initialization in lov_io_iter_init()
to its use in lov_lock_sub_init(). Also remove the unused
lo_write_lock member of struct lov_object.

Fixes: 9801500451 ("LU-14128 lov: correctly set OST obj size")
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I799e07059212629fe9d84c5e58c349035a40da9e
Reviewed-on: https://review.whamcloud.com/46940
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_cl_internal.h
lustre/lov/lov_io.c
lustre/lov/lov_lock.c
lustre/lov/lov_object.c