diff options
| author | Christoph Hellwig <[email protected]> | 2023-10-25 14:10:18 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-11-20 14:05:18 +0000 |
| commit | 1898efcdbed32bb1c67269c985a50bab0dbc9493 (patch) | |
| tree | 6705d4340af1555d87c71ea48a3aebb6255a4acc /fs/xfs/xfs_inode.h | |
| parent | filemap: add a per-mapping stable writes flag (diff) | |
| download | kernel-1898efcdbed32bb1c67269c985a50bab0dbc9493.tar.gz kernel-1898efcdbed32bb1c67269c985a50bab0dbc9493.zip | |
block: update the stable_writes flag in bdev_add
Propagate the per-queue stable_write flags into each bdev inode in bdev_add.
This makes sure devices that require stable writes have it set for I/O
on the block device node as well.
Note that this doesn't cover the case of a flag changing on a live device
yet. We should handle that as well, but I plan to cover it as part of a
more general rework of how changing runtime paramters on block devices
works.
Fixes: 1cb039f3dc16 ("bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag")
Reported-by: Ilya Dryomov <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Ilya Dryomov <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
0 files changed, 0 insertions, 0 deletions
