f2fs: cp_mutex starvation issue
Hi Chao,
Can we consider to move the sbi->cp_mutex as well to use rw_sem similar to this patch of yours -
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?id=fb24fea75ca5ceef59f753494b2efd453606e08a
We are observing issues where fsync() of a high priority task getting starved when there is heavy IO from several low priority tasks. I would like to know if this was considered before and if any issues in doing so? Please share your inputs.
Thanks,
Sahitya.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Sahitya,
Quoted 10 lines · On 2020/11/18 17:47, [email protected] wrote:
Hi Chao,
Can we consider to move the
sbi->cp_mutexas well to userw_semsimilar to this patch of yours -
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?id=fb24fea75ca5ceef59f753494b2efd453606e08aWe are observing issues where
fsync()of a high priority task getting starved when there is heavy IO from several low priority tasks. I would like to know if this was considered before and if any issues in doing so? Please share your inputs.
I missed to check cp_mutex lock, because I haven't been reported with starving issue on this lock, anyway, I agree to do the same change on cp_mutex lock, and I don't think there is any problem after change.
Could you please make one patch to fix this?
Thanks,
Quoted 5 lines
Thanks,
Sahitya.
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hi Chao,
Quoted 14 lines · Chao Yu
Hi Sahitya,
Quoted 10 lines · On 2020/11/18 17:47, [email protected] wrote:
Hi Chao,
Can we consider to move the
sbi->cp_mutexas well to userw_semsimilar to this patch of yours -
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?id=fb24fea75ca5ceef59f753494b2efd453606e08aWe are observing issues where
fsync()of a high priority task getting starved when there is heavy IO from several low priority tasks. I would like to know if this was considered before and if any issues in doing so? Please share your inputs.
Quoted 5 lines
I missed to check
cp_mutexlock, because I haven't been reported with starving issue on this lock, anyway, I agree to do the same change oncp_mutexlock, and I don't think there is any problem after change.Could you please make one patch to fix this?
Thanks for the comments.
Sure, I will put up a patch for this.
Thanks,
Quoted 7 lines
Thanks,
Quoted 5 lines
Thanks,
Sahitya.
.
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel