Whamcloud - gitweb
LU-14805 llite: No locked parallel DIO 31/44131/3
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 2 Jul 2021 17:24:48 +0000 (13:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 22 Jul 2021 01:49:15 +0000 (01:49 +0000)
commit0f8db7e06abbc341e1ecc6ae164fca7b4a040c4a
tree9112e3d613b3b734d0811affce8ac99849d0a228
parent1dbe63301b8c5cb7f7d0fe9960cafd3cd0e45534
LU-14805 llite: No locked parallel DIO

If we are doing locked DIO, the OSC & LDLM locks are
released at the end of cl_io_loop, ie, before we wait for
parallel DIO at the llite layer.

This is problematic because the locks are released before
i/o done using them is complete; this can lead to data
inconsistencies.  (And at least one LBUG, see LU-14805.)

The easiest solution for now is only do parallel DIO when
working lockless (which is the default; DIO only switches
to locked to manage conflicts with buffered i/o).

This problem & fix apply to AIO as well as parallel DIO.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: If98a0551d6dde54220b406b26e978e284a6b1ebf
Reviewed-on: https://review.whamcloud.com/44131
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/rw26.c