Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30bda0b8 authored by Ryusuke Konishi's avatar Ryusuke Konishi
Browse files

nilfs2: set bio unplug flag for the last bio in segment



This sets BIO_RW_UNPLUG flag on the last bio of each segment during
write.  The last bio should be unplugged immediately because the
caller waits for the completion after the submission.

Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent 003ff182
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -393,7 +393,7 @@ int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf,
		 * Last BIO is always sent through the following
		 * Last BIO is always sent through the following
		 * submission.
		 * submission.
		 */
		 */
		rw |= (1 << BIO_RW_SYNCIO);
		rw |= (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG);
		res = nilfs_submit_seg_bio(wi, rw);
		res = nilfs_submit_seg_bio(wi, rw);
		if (unlikely(res))
		if (unlikely(res))
			goto failed_bio;
			goto failed_bio;