[Devel] [RFC PATCH vz9 v6 38/62] dm-ploop: convert bat_rwlock to bat_lock spinlock
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Tue Jan 14 11:46:16 MSK 2025
On 12/6/24 05:56, Alexander Atanasov wrote:
> @@ -1828,9 +1828,16 @@ static void ploop_process_resubmit_pios(struct ploop *ploop,
> }
> }
>
> -static void ploop_submit_metadata_writeback(struct ploop *ploop)
> +#ifdef USE_RUNNERS
> +static inline int ploop_runners_have_pending(struct ploop *ploop)
> {
> - ktime_t ktime, ktimeout;
> + return atomic_read(&ploop->kt_worker->inflight_pios);
> +}
> +#endif
> +
> +static void ploop_submit_metadata_writeback(struct ploop *ploop, int force)
> +{
> + unsigned long flags;
> LIST_HEAD(ll_skipped);
> struct md_page *md;
> struct llist_node *pos, *t;
It looks like the hunk adding ploop_runners_have_pending is unrelated to
this patch.
--
Best regards, Tikhomirov Pavel
Senior Software Developer, Virtuozzo.
More information about the Devel
mailing list