projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
003ff18
)
nilfs2: set bio unplug flag for the last bio in segment
author
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Sun, 17 May 2009 01:57:43 +0000
(10:57 +0900)
committer
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Wed, 10 Jun 2009 14:41:11 +0000
(23:41 +0900)
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: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/segbuf.c
patch
|
blob
|
history
diff --git
a/fs/nilfs2/segbuf.c
b/fs/nilfs2/segbuf.c
index dc0277a306ca8f4f0b7df4a1001f458069247d81..9e3fe17bb96bcb86ec786a4469d659b9554ae399 100644
(file)
--- a/
fs/nilfs2/segbuf.c
+++ b/
fs/nilfs2/segbuf.c
@@
-393,7
+393,7
@@
int nilfs_segbuf_write(struct nilfs_segment_buffer *segbuf,
* Last BIO is always sent through the following
* submission.
*/
- rw |= (1 << BIO_RW_SYNCIO);
+ rw |= (1 << BIO_RW_SYNCIO)
| (1 << BIO_RW_UNPLUG)
;
res = nilfs_submit_seg_bio(wi, rw);
if (unlikely(res))
goto failed_bio;