]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: lustre: lov: use correct env in lov_io_data_version_end()
authorNeilBrown <neilb@suse.com>
Thu, 22 Feb 2018 22:09:33 +0000 (09:09 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Feb 2018 13:45:10 +0000 (14:45 +0100)
commit01220025b14ab6be3d41313b45e87be332f217e4
treefd2e6ea74b42446749b6d45de0fa2a0a78bb2d0e
parent662e8aff5b9289d231308f0982770b1c941ae531
staging: lustre: lov: use correct env in lov_io_data_version_end()

lov - the logical object volume manager - is responsible for
striping data across multiple volumes.

So when it is given a request, it creates one or more
sub-requests, one for each target volume.  Each sub_io
request has a sub_env environment which it operates in.

When lov_io_data_version_end() calls lov_io_end_wrapper() to
wait for and close off a sub_io, it passes the wrong
environment.

This causes an LINVRNT() to fail in cl2osc_io(), and may
cause other problems.

This patch changes the call to use ->sub_env, much like
other code in the same file.

Fixes: f0cf21abcccc ("staging: lustre: clio: add CIT_DATA_VERSION and remove IOC_LOV_GETINFO")
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_io.c