Message ID | 20240411032349.3051233-2-yukuai1@huaweicloud.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: fix cached time in plug | expand |
On 4/10/24 9:23 PM, Yu Kuai wrote: > diff --git a/block/blk-core.c b/block/blk-core.c > index a16b5abdbbf5..e317d7bc0696 100644 > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -1195,6 +1195,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule) > if (unlikely(!rq_list_empty(plug->cached_rq))) > blk_mq_free_plug_rqs(plug); > > + plug->cur_ktime = 0; > current->flags &= ~PF_BLOCK_TS; > } We can just use blk_plug_invalidate_ts() here, but not really important. I think this one should go into 6.9, and patch 2 should go into 6.10, however.
Hi, 在 2024/04/12 0:44, Jens Axboe 写道: > On 4/10/24 9:23 PM, Yu Kuai wrote: >> diff --git a/block/blk-core.c b/block/blk-core.c >> index a16b5abdbbf5..e317d7bc0696 100644 >> --- a/block/blk-core.c >> +++ b/block/blk-core.c >> @@ -1195,6 +1195,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule) >> if (unlikely(!rq_list_empty(plug->cached_rq))) >> blk_mq_free_plug_rqs(plug); >> >> + plug->cur_ktime = 0; >> current->flags &= ~PF_BLOCK_TS; >> } > > We can just use blk_plug_invalidate_ts() here, but not really important. > I think this one should go into 6.9, and patch 2 should go into 6.10, > however. This sounds great! Do you want me to update and send them separately? Thanks, Kuai >
On 4/11/24 7:24 PM, Yu Kuai wrote: > Hi, > > ? 2024/04/12 0:44, Jens Axboe ??: >> On 4/10/24 9:23 PM, Yu Kuai wrote: >>> diff --git a/block/blk-core.c b/block/blk-core.c >>> index a16b5abdbbf5..e317d7bc0696 100644 >>> --- a/block/blk-core.c >>> +++ b/block/blk-core.c >>> @@ -1195,6 +1195,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule) >>> if (unlikely(!rq_list_empty(plug->cached_rq))) >>> blk_mq_free_plug_rqs(plug); >>> + plug->cur_ktime = 0; >>> current->flags &= ~PF_BLOCK_TS; >>> } >> >> We can just use blk_plug_invalidate_ts() here, but not really important. >> I think this one should go into 6.9, and patch 2 should go into 6.10, >> however. > > This sounds great! Do you want me to update and send them separately? I've applied 1/2 separately, so just resend 2/2 when -rc4 has been tagged and I'll get that one queued for 6.10.
diff --git a/block/blk-core.c b/block/blk-core.c index a16b5abdbbf5..e317d7bc0696 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1195,6 +1195,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule) if (unlikely(!rq_list_empty(plug->cached_rq))) blk_mq_free_plug_rqs(plug); + plug->cur_ktime = 0; current->flags &= ~PF_BLOCK_TS; }