Whamcloud - gitweb
libext2fs: fix Direct I/O support in the Unix I/O manager
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sat, 1 May 2021 11:06:12 +0000 (13:06 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 May 2021 20:29:41 +0000 (16:29 -0400)
commitf53fa5a2ac40d595908f4ae868cca2bd195c0a88
tree64a22253a97affe5445e6f0935689e074654c8ec
parent4c928984bfa54c9b1c5d3e679d9ed62f284b8f3c
libext2fs: fix Direct I/O support in the Unix I/O manager

Commit d557b9659ba9 ("libext2fs: fix potential races in unix_io")
contained some additional changes that were supposed to clarify the
management of the length calculations when reading and writing
non-page aligned data using Direct I/O; unfortunately, those changes
were incorrect, and actually broke the Direct I/O support.

Fix these problems by reverting those portions of that commit.

[ commit description rewritten by tytso ]

Originally from https://github.com/tytso/e2fsprogs/pull/68

Fixes: d557b9659ba9 ("libext2fs: fix potential races in unix_io")
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/unix_io.c