[PATCH] block: remove redundant bio_uninit from simple direct io

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since bio_endio() will call bio_uninit() for us, we can remove
it from current code path.

Signed-off-by: Yufen Yu <yuyufen@xxxxxxxxxx>
---
 fs/block_dev.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/block_dev.c b/fs/block_dev.c
index 6cc4d4cfe0c2..7a63fc3ce8d9 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -299,8 +299,6 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter,
 	if (vecs != inline_vecs)
 		kfree(vecs);
 
-	bio_uninit(&bio);
-
 	return ret;
 }
 
-- 
2.25.4




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux