bcachefs: Fix dio write path with loopback dio mode
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 9 Mar 2022 20:37:42 +0000 (15:37 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:27 +0000 (17:09 -0400)
commit9552e19f6fff86d9907bb088f8b1eb786562f9d3
treee9986f22d9b7d0d21f323d8a05264fe1f436e084
parent4d126dc8b30c2c1c69cbf600d604e7ceb8ca7f8d
bcachefs: Fix dio write path with loopback dio mode

When the iov_iter is a bvec iter, it's possible the IO was submitted
from a kthread that didn't have an mm to switch to.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fs-io.c