]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
mm: always respect QUEUE_FLAG_STABLE_WRITES on the block device wip-stable-writes
authorIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2023 10:31:26 +0000 (12:31 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 5 May 2023 19:47:43 +0000 (21:47 +0200)
commite3c188683301e6100e760598be60afc042404cf8
treec652c7b086a22514eef2738f9c86e717a407f799
parentec7ed44b26f6f5597a5a769b1c8098263d477f6a
mm: always respect QUEUE_FLAG_STABLE_WRITES on the block device

Commit 1cb039f3dc16 ("bdi: replace BDI_CAP_STABLE_WRITES with a queue
and a sb flag") introduced a regression for the raw block device use
case.  Capturing QUEUE_FLAG_STABLE_WRITES flag in set_bdev_super() has
the effect of respecting it only when there is a filesystem mounted on
top of the block device.  Consequently, block devices that do integrity
checking return sporadic checksum errors when accessed directly.

Resurrect the original stable writes behavior by changing
folio_wait_stable() to account for the case of a raw block device.

Cc: stable@vger.kernel.org
Fixes: 1cb039f3dc16 ("bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
mm/page-writeback.c