File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,6 @@ xfs_end_io(
206
206
}
207
207
}
208
208
209
- static inline bool xfs_ioend_needs_workqueue (struct iomap_ioend * ioend )
210
- {
211
- return xfs_ioend_is_append (ioend ) ||
212
- ioend -> io_type == IOMAP_UNWRITTEN ||
213
- (ioend -> io_flags & IOMAP_F_SHARED );
214
- }
215
-
216
209
STATIC void
217
210
xfs_end_bio (
218
211
struct bio * bio )
@@ -472,7 +465,9 @@ xfs_prepare_ioend(
472
465
473
466
memalloc_nofs_restore (nofs_flag );
474
467
475
- if (xfs_ioend_needs_workqueue (ioend ))
468
+ /* send ioends that might require a transaction to the completion wq */
469
+ if (xfs_ioend_is_append (ioend ) || ioend -> io_type == IOMAP_UNWRITTEN ||
470
+ (ioend -> io_flags & IOMAP_F_SHARED ))
476
471
ioend -> io_bio -> bi_end_io = xfs_end_bio ;
477
472
return status ;
478
473
}
You can’t perform that action at this time.
0 commit comments