[PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Yang Yang
When si_mem_available() calculates 'available', it takes SWAP into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system would like to do that), there is no need to consider it. Signed-off-by: Yang Yang --- mm/page_alloc.c | 8 +++- 1 file changed, 7 insertions(+),

[PATCH v2] kyber: introduce kyber_depth_updated()

2021-02-05 Thread Yang Yang
se hang. This patch introduces kyber_depth_updated(), so that kyber can update async depth when queue depth changes. Signed-off-by: Yang Yang --- v2: - Change the commit message - Change from sbitmap::depth to 2^sbitmap::shift --- block/kyber-iosched.c | 29 + 1 file changed,

Re: [PATCH v2] kyber: introduce kyber_depth_updated()

2021-02-22 Thread Yang Yang
On 2021/2/5 17:13, Yang Yang wrote: Hang occurs when user changes the scheduler queue depth, by writing to the 'nr_requests' sysfs file of that device. The details of the environment that we found the problem are as follows: an eMMC block device total driver tags: 16

futex: Ahead futex_init from __initcall to core_initcall

2016-12-30 Thread Yang Yang
tack limit = 0xed0ea1b0) Backtrace: [] (futex_wake+0x0/0x11c) from [] [] (do_futex+0x0/0x870) from [] [] (SyS_futex+0x0/0x16c) from [] Code: e1a07000 e5903000 e153 e243000c (e5934000) Signed-off-by: Yang Yang --- kernel/futex.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) di

[PATCH] blk-mq: move cancel of hctx->run_work to the front of blk_exit_queue

2020-10-09 Thread Yang Yang
blk_exit_queue will free elevator_data, while blk_mq_run_work_fn will access it. Move cancel of hctx->run_work to the front of blk_exit_queue to avoid use-after-free. Fixes: 1b97871b501f ("blk-mq: move cancel of hctx->run_work into blk_mq_hw_sysfs_release") Signed-off-by: Yang

[PATCH] kyber: Fix crash in kyber_finish_request()

2020-09-07 Thread Yang Yang
Signed-off-by: Yang Yang --- block/kyber-iosched.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/kyber-iosched.c b/block/kyber-iosched.c index a38c5ab103d1..af73afe7a05c 100644 --- a/block/kyber-iosched.c +++ b/block/kyber-iosched.c @@ -611,6 +611,9 @@ static void

[PATCH] scsi: ufs: Fix a bug in ufshcd_system_resume()

2020-11-10 Thread Yang Yang
_set_active(dev) scsi host0: runtime PM trying to activate child device host0 but parent (880.ufshc) is not active Fixes: 57d104c153d3 ("ufs: add UFS power management support") Signed-off-by: Yang Yang --- drivers/scsi/ufs/ufshcd.c | 15 +-- 1 file changed, 9 i

[PATCH] blk-mq: fix hang issue in blk_queue_enter()

2020-09-14 Thread Yang Yang
) missed the chance to resume the queue, so blk_queue_enter() may wait here forever. The solution is to wake up the mq_freeze_wq after runtime suspend completed, make blk_pm_request_resume() reexamine the q->rpm_status flag. Signed-off-by: Yang Yang --- block/blk-pm.c | 2 ++ 1 file changed,

Re: [PATCH] blk-mq: fix hang issue in blk_queue_enter()

2020-09-15 Thread Yang Yang
the tag “Fixes” to the commit message? Thank you for your suggestions. -- Yang Yang

[tip:locking/urgent] futex: Move futex_init() to core_initcall

2017-02-13 Thread tip-bot for Yang Yang
Commit-ID: 25f71d1c3e98ef0e52371746220d66458eac75bc Gitweb: http://git.kernel.org/tip/25f71d1c3e98ef0e52371746220d66458eac75bc Author: Yang Yang AuthorDate: Fri, 30 Dec 2016 16:17:55 +0800 Committer: Thomas Gleixner CommitDate: Mon, 13 Feb 2017 16:12:22 +0100 futex: Move futex_init