aio: remove the extra get_file/fput pair in io_submit_one
authorChristoph Hellwig <hch@lst.de>
Fri, 6 Apr 2018 07:28:17 +0000 (09:28 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 May 2018 17:56:30 +0000 (19:56 +0200)
commit92ce4728563ad1fc42466f9bbecc1ac31d675894
treeea7ad875762949ff60965974a18473af3d9c8f52
parent75321b50a37a5ba612125a04bfc9e43e3da5b305
aio: remove the extra get_file/fput pair in io_submit_one

If we release the lockdep write protection token before calling into
->write_iter and thus never access the file pointer after an -EIOCBQUEUED
return from ->write_iter or ->read_iter we don't need this extra
reference.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/aio.c