]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b0b26cedd57adce4d7262abbc760a9ee79f9954
treeea7ad875762949ff60965974a18473af3d9c8f52
parentca391b3cf7d5b6b4017a7ab85673b6ab8d339b71
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