diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2017-08-09 03:21:49 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-08-22 18:22:23 +0200 |
commit | 6f4a1eefdd0ad4561543270a7fceadabcca075dd (patch) | |
tree | 65b1a15fed34eb464ad8cb30db577ce6afd08ebc /fs/xfs/xfs_buf_item.c | |
parent | xfs: write unmount record for ro mounts (diff) | |
download | linux-6f4a1eefdd0ad4561543270a7fceadabcca075dd.tar.xz linux-6f4a1eefdd0ad4561543270a7fceadabcca075dd.zip |
xfs: toggle readonly state around xfs_log_mount_finish
When we do log recovery on a readonly mount, unlinked inode
processing does not happen due to the readonly checks in
xfs_inactive(), which are trying to prevent any I/O on a
readonly mount.
This is misguided - we do I/O on readonly mounts all the time,
for consistency; for example, log recovery. So do the same
RDONLY flag twiddling around xfs_log_mount_finish() as we
do around xfs_log_mount(), for the same reason.
This all cries out for a big rework but for now this is a
simple fix to an obvious problem.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
0 files changed, 0 insertions, 0 deletions