Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1363500
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jens Axboe <axboe@fb.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/8] writeback: use WRITE_SYNC for reclaim or sync writeback |
| Date | Wed, 23 Mar 2016 16:30:02 +0100 |
| Message-ID | <rfSTo-5lq-35@gated-at.bofh.it> (permalink) |
| References | <rfSTn-5lq-3@gated-at.bofh.it> |
| X-Original-To | <linux-kernel@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, <linux-block@vger.kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=qg0UCVaWu34cG0bNJH1vMAQGE54tQBof0qgIjFtzatk=; b=R1KADN+BmWHt5LyoMmoVFXknm5zieGVppqdVMY9Quajeq8Vi9adYpW21zIFQgi9ztS59 rdsypaaOeOQxAqFZkM1N+omkio/A1e9AdE/6J0VjuWR4diAhV6vzEvKpRwr6JqDsz/Xq Eh7Nroc0cCRnzPYN0mbVbnkHKeRvT9ZW8+I= |
| X-Mailer | git-send-email 2.4.1.168.g1ea28e1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Originating-IP | [192.168.54.13] |
| X-Proofpoint-Spam-Reason | safe |
| X-Fb-Internal | Safe |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2016-03-23_08:,, signatures=0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 23 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jens Axboe <axboe@fb.com> |
| X-Original-Date | Wed, 23 Mar 2016 09:25:45 -0600 |
| X-Original-Message-ID | <1458746750-9213-4-git-send-email-axboe@fb.com> |
| X-Original-References | <1458746750-9213-1-git-send-email-axboe@fb.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1363500 |
Show key headers only | View raw
If we're doing reclaim or sync IO, use WRITE_SYNC to inform the lower
levels of the importance of this IO.
Signed-off-by: Jens Axboe <axboe@fb.com>
---
include/linux/writeback.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/writeback.h b/include/linux/writeback.h
index 719c255e105a..b2c75b8901da 100644
--- a/include/linux/writeback.h
+++ b/include/linux/writeback.h
@@ -102,7 +102,7 @@ struct writeback_control {
static inline int wbc_to_write(struct writeback_control *wbc)
{
- if (wbc->sync_mode == WB_SYNC_ALL)
+ if (wbc->sync_mode == WB_SYNC_ALL || wbc->for_reclaim || wbc->for_sync)
return WRITE_SYNC;
return WRITE;
--
2.4.1.168.g1ea28e1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(none) Jens Axboe <axboe@fb.com> - 2016-03-23 16:30 +0100
[PATCH 8/8] writeback: throttle buffered writeback Jens Axboe <axboe@fb.com> - 2016-03-23 16:30 +0100
[PATCH 6/8] sd: inform block layer of write cache state Jens Axboe <axboe@fb.com> - 2016-03-23 16:30 +0100
[PATCH 3/8] writeback: use WRITE_SYNC for reclaim or sync writeback Jens Axboe <axboe@fb.com> - 2016-03-23 16:30 +0100
[PATCHSET v2][RFC] Make background writeback not suck Jens Axboe <axboe@fb.com> - 2016-03-23 16:40 +0100
Re: [PATCHSET v2][RFC] Make background writeback not suck Jens Axboe <axboe@fb.com> - 2016-03-24 18:50 +0100
csiph-web