Skip to contentSkip to conversation

common/xfs: add iomap_dio_complete() to the dmesg filter

PATCH In review Eryu Guan 2 participants 2 messages Sep 29, 2017

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 common/xfs: add iomap_dio_complete() to the dmesg filter

Kernel commit 332391a9935d ("fs: Fix page cache inconsistency when mixing buffered and AIO DIO") moved the WARN_ON_ONCE() into iomap_dio_complete(), along with the page cache invalidation. Let's add iomap_dio_complete() to the filter whitelist too, so this expected warning when mixing direct I/O with buffered I/O won't fail tests.

---
 common/xfs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
common/xfs +3 -1
index def28bfc7309..c869aaca4512 100644
@@ -610,11 +610,13 @@ _filter_xfs_dmesg()
 	local warn5="WARNING:.*fs/iomap\.c:.*iomap_dio_rw.*"
 	local warn6="WARNING:.*fs/xfs/xfs_aops\.c:.*__xfs_get_blocks.*"
 	local warn7="WARNING:.*fs/iomap\.c:.*iomap_dio_actor.*"
+	local warn8="WARNING:.*fs/iomap\.c:.*iomap_dio_complete.*"
 	sed -e "s#$warn1#Intentional warnings in xfs_file_dio_aio_write#" \
 	    -e "s#$warn2#Intentional warnings in xfs_file_dio_aio_read#" \
 	    -e "s#$warn3#Intentional warnings in xfs_file_read_iter#" \
 	    -e "s#$warn4#Intentional warnings in xfs_file_aio_read#" \
 	    -e "s#$warn5#Intentional warnings in iomap_dio_rw#" \
 	    -e "s#$warn6#Intentional warnings in __xfs_get_blocks#" \
-	    -e "s#$warn7#Intentional warnings in iomap_dio_actor#"
+	    -e "s#$warn7#Intentional warnings in iomap_dio_actor#" \
+	    -e "s#$warn8#Intentional warnings in iomap_dio_complete#"
 }
Signature · 1 line
2.13.6
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Eryu Guan

Kernel commit 332391a9935d ("fs: Fix page cache inconsistency when mixing buffered and AIO DIO") moved the WARN_ON_ONCE() into iomap_dio_complete(), along with the page cache invalidation. Let's add iomap_dio_complete() to the filter whitelist too, so this expected warning when mixing direct I/O with buffered I/O won't fail tests.

Looks ok,

Quoted 30 lines
---
 common/xfs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
common/xfs +3 -1
index def28bfc7309..c869aaca4512 100644
@@ -610,11 +610,13 @@ _filter_xfs_dmesg()
 	local warn5="WARNING:.*fs/iomap\.c:.*iomap_dio_rw.*"
 	local warn6="WARNING:.*fs/xfs/xfs_aops\.c:.*__xfs_get_blocks.*"
 	local warn7="WARNING:.*fs/iomap\.c:.*iomap_dio_actor.*"
+	local warn8="WARNING:.*fs/iomap\.c:.*iomap_dio_complete.*"
 	sed -e "s#$warn1#Intentional warnings in xfs_file_dio_aio_write#" \
 	    -e "s#$warn2#Intentional warnings in xfs_file_dio_aio_read#" \
 	    -e "s#$warn3#Intentional warnings in xfs_file_read_iter#" \
 	    -e "s#$warn4#Intentional warnings in xfs_file_aio_read#" \
 	    -e "s#$warn5#Intentional warnings in iomap_dio_rw#" \
 	    -e "s#$warn6#Intentional warnings in __xfs_get_blocks#" \
-	    -e "s#$warn7#Intentional warnings in iomap_dio_actor#"
+	    -e "s#$warn7#Intentional warnings in iomap_dio_actor#" \
+	    -e "s#$warn8#Intentional warnings in iomap_dio_complete#"
 }
Signature · 6 lines
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html