Message ID | 20221018014326.467842-3-yukuai1@huaweicloud.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | wbt stable patches | expand |
On Tue, Oct 18, 2022 at 09:43:25AM +0800, Yu Kuai wrote: > From: Yu Kuai <yukuai3@huawei.com> > > commit 8c5035dfbb9475b67c82b3fdb7351236525bf52b upstream. I need a 5.15 version of this, and the 3/3 patch in order to be able to apply the 5.10.y version. Can you please send that, and then resend the remaining patches here for 5.10.y? thanks, greg k-h
Hi, 在 2022/10/27 0:47, Greg KH 写道: > On Tue, Oct 18, 2022 at 09:43:25AM +0800, Yu Kuai wrote: >> From: Yu Kuai <yukuai3@huawei.com> >> >> commit 8c5035dfbb9475b67c82b3fdb7351236525bf52b upstream. > > I need a 5.15 version of this, and the 3/3 patch in order to be able to > apply the 5.10.y version. > > Can you please send that, and then resend the remaining patches here for > 5.10.y? Yes, I can do that. By the way, just to confirm: I already saw that patch 2,3 is queued: [PATCH 5.15 122/530] blk-wbt: call rq_qos_add() after wb_normal is initialized [PATCH 5.15 519/530] blk-wbt: fix that rwb->wc is always set to 1 in wbt_init() Do I still need to send a 5.15 version? Thanks, Kuai > > thanks, > > greg k-h > . >
On Thu, Oct 27, 2022 at 07:28:26PM +0800, Yu Kuai wrote: > Hi, > > 在 2022/10/27 0:47, Greg KH 写道: > > On Tue, Oct 18, 2022 at 09:43:25AM +0800, Yu Kuai wrote: > > > From: Yu Kuai <yukuai3@huawei.com> > > > > > > commit 8c5035dfbb9475b67c82b3fdb7351236525bf52b upstream. > > > > I need a 5.15 version of this, and the 3/3 patch in order to be able to > > apply the 5.10.y version. > > > > Can you please send that, and then resend the remaining patches here for > > 5.10.y? > > Yes, I can do that. By the way, just to confirm: > > I already saw that patch 2,3 is queued: > > [PATCH 5.15 122/530] blk-wbt: call rq_qos_add() after wb_normal is > initialized > [PATCH 5.15 519/530] blk-wbt: fix that rwb->wc is always set to 1 in > wbt_init() > > Do I still need to send a 5.15 version? Not if it is already in the tree, no. thanks, greg k-h
diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 4ec0a018a2ad..bafdb8098893 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -840,6 +840,10 @@ int wbt_init(struct request_queue *q) rwb->enable_state = WBT_STATE_ON_DEFAULT; rwb->wc = 1; rwb->rq_depth.default_depth = RWB_DEF_DEPTH; + rwb->min_lat_nsec = wbt_default_latency_nsec(q); + + wbt_queue_depth_changed(&rwb->rqos); + wbt_set_write_cache(q, test_bit(QUEUE_FLAG_WC, &q->queue_flags)); /* * Assign rwb and add the stats callback. @@ -847,10 +851,5 @@ int wbt_init(struct request_queue *q) rq_qos_add(q, &rwb->rqos); blk_stat_add_callback(q, rwb->cb); - rwb->min_lat_nsec = wbt_default_latency_nsec(q); - - wbt_queue_depth_changed(&rwb->rqos); - wbt_set_write_cache(q, test_bit(QUEUE_FLAG_WC, &q->queue_flags)); - return 0; }