aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vcodec/kernel
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-08-21 23:21:30 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:01 +0200
commite4660687ba06cfdbee6f8c9b1c47562438fd7b6d (patch)
tree1b23c44dbf0fbce1d01721e3376874df8abc0619 /include/linux/vcodec/kernel
parent322f0bb77cfcdf1c53ed75dec8ee6c107ccaf998 (diff)
f2fs: schedule in between two continous batch discards
In batch discard approach of fstrim will grab/release gc_mutex lock repeatly, it makes contention of the lock becoming more intensive. So after one batch discards were issued in checkpoint and the lock was released, it's better to do schedule() to increase opportunity of grabbing gc_mutex lock for other competitors. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/vcodec/kernel')
0 files changed, 0 insertions, 0 deletions