Skip to content

Commit c213dc8

Browse files
author
Christoph Hellwig
committed
aio: remove an outdated BUG_ON and comment in aio_complete
These days we don't treat sync iocbs special in the aio completion code as they never use it. Remove the old comment and BUG_ON given that the current definition of is_sync_kiocb makes it impossible to hit. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]>
1 parent 01a658e commit c213dc8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

fs/aio.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,15 +1107,6 @@ static void aio_complete(struct kiocb *kiocb, long res, long res2)
11071107
file_end_write(file);
11081108
}
11091109

1110-
/*
1111-
* Special case handling for sync iocbs:
1112-
* - events go directly into the iocb for fast handling
1113-
* - the sync task with the iocb in its stack holds the single iocb
1114-
* ref, no other paths have a way to get another ref
1115-
* - the sync task helpfully left a reference to itself in the iocb
1116-
*/
1117-
BUG_ON(is_sync_kiocb(kiocb));
1118-
11191110
if (iocb->ki_list.next) {
11201111
unsigned long flags;
11211112

0 commit comments

Comments
 (0)