Skip to content

Small QOI fixes for transaction_kthread

Nikolay Borisov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: Use helpers to convert from seconds to jiffies in transaction_kthreadfs/btrfs/disk-io.c+2 -23 replies
2/4btrfs: Remove redundant checkfs/btrfs/disk-io.c+1 -20 replies
3/4btrfs: Record delta directly in transaction_kthreadfs/btrfs/disk-io.c+3 -30 replies
4/4btrfs: Be smarter when sleeping in transaction_kthreadfs/btrfs/disk-io.c+1 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Small QOI fixes for transaction_kthread

Following 4 patches make transaction_kthread code slitghly more user friendly. Namely, patch 1 convert from open-coded multiplicaiton by HZ to using msecs_to_jiffies helper. Patch 2 relies on the observation that the running transaction is obtained under trans_lock so an extra check can be removed. Patch 3/4 could possibly be squashed into 1 but the net effect is that the code is more intuitive when sleeping in case a lower interval than commit_trans has elapsed.

This has survived full xfstest run.

Nikolay Borisov (4):
btrfs: Use helpers to convert from seconds to jiffies in
transaction_kthread
btrfs: Remove redundant check
btrfs: Record delta directly in transaction_kthread
btrfs: Be smarter when sleeping in transaction_kthread

 fs/btrfs/disk-io.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

--
2.17.1