diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2025-07-14 18:27:46 +0200 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-07-31 15:39:55 +0200 |
| commit | 225b2cb640d7ddbb2df38130f3f34f4a84497426 (patch) | |
| tree | 96aa512621e5ff69da33335f725d4f8e95c0e522 | |
| parent | 487767bff572d46f7c37ad846c4078f6d6c9cc55 (diff) | |
vdo: omit need_resched() before cond_resched()
There's no need to call need_resched() because cond_resched() will do
nothing if need_resched() returns false.
Reviewed-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
| -rw-r--r-- | drivers/md/dm-vdo/funnel-workqueue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-vdo/funnel-workqueue.c b/drivers/md/dm-vdo/funnel-workqueue.c index ae11941c90a9..0613c82bbe8e 100644 --- a/drivers/md/dm-vdo/funnel-workqueue.c +++ b/drivers/md/dm-vdo/funnel-workqueue.c @@ -252,8 +252,7 @@ static void service_work_queue(struct simple_work_queue *queue) * This speeds up some performance tests; that "other work" might include other VDO * threads. */ - if (need_resched()) - cond_resched(); + cond_resched(); } run_finish_hook(queue); |
