Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1473720
| From | Jens Axboe <axboe@fb.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback |
| Date | 2016-08-31 19:10 +0200 |
| Message-ID | <schbs-59T-35@gated-at.bofh.it> (permalink) |
| References | <schbr-59T-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
If we're doing background type writes, then use the appropriate
write command for that.
Signed-off-by: Jens Axboe <axboe@fb.com>
---
include/linux/writeback.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index e1fc25172397..7fb80c78f159 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -104,6 +104,8 @@ static inline int wbc_to_write_flags(struct writeback_control *wbc)
{
if (wbc->sync_mode == WB_SYNC_ALL)
return WRITE_SYNC;
+ else if (wbc->for_kupdate || wbc->for_background)
+ return WRITE_BG;
return WRITE;
}
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHSET v6] Throttled background buffered writeback Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
[PATCH 5/8] block: add code to track actual device queue depth Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
[PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
[PATCH 1/8] block: add WRITE_BG Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
Re: [PATCH 1/8] block: add WRITE_BG Johannes Thumshirn <jthumshirn@suse.de> - 2016-09-01 10:00 +0200
Re: [PATCH 1/8] block: add WRITE_BG Johannes Thumshirn <jthumshirn@suse.de> - 2016-09-01 10:00 +0200
[PATCH 8/8] writeback: throttle buffered writeback Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
[PATCH 2/8] writeback: add wbc_to_write_flags() Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
Re: [PATCH 2/8] writeback: add wbc_to_write_flags() Omar Sandoval <osandov@osandov.com> - 2016-09-01 01:40 +0200
[PATCH 6/8] block: add scalable completion tracking of requests Jens Axboe <axboe@fb.com> - 2016-08-31 19:10 +0200
csiph-web