Whamcloud - gitweb
LU-13388 lod: unprotected access to component entries 69/38069/3
authorVitaly Fertman <c17818@cray.com>
Wed, 25 Mar 2020 12:55:53 +0000 (15:55 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 1 May 2020 04:27:15 +0000 (04:27 +0000)
commit6e2c8ef7267694125d87cfc8232dc36034de8b01
treea54e95d3173a563072e5d0900eb24c2d064119da
parentd76093613f063e58ec440145338dbea9d18a2a25
LU-13388 lod: unprotected access to component entries

a race is possible between setattr, which may want to traverse
the component set, and the layout_change, which may change the
component set if SEL is enabled. Take an UPDATE lock on layout
write operation.

HPE-bug-id: LUS-8146
Signed-off-by: Vitaly Fertman <c17818@cray.com>
Change-Id: Idf8a5c3d423707043153892f607cdd54099d9579
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Tested-by: Elena Gryaznova <c17455@cray.com>
Reviewed-on: https://es-gerrit.dev.cray.com/156681
Reviewed-on: https://review.whamcloud.com/38069
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c