Skip to content

Commit bd2f4ae

Browse files
davejiangvinodkoul
authored andcommitted
dmaengine: idxd: clear block on fault flag when clear wq
The block on fault flag is not cleared when we disable or reset wq. This causes it to remain set if the user does not clear it on the next configuration load. Add clear of flag in dxd_wq_disable_cleanup() routine. Fixes: da32b28 ("dmaengine: idxd: cleanup workqueue config after disabling") Signed-off-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/162803023553.3086015.8158952172068868803.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul <[email protected]>
1 parent 81c2f79 commit bd2f4ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/idxd/device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ static void idxd_wq_disable_cleanup(struct idxd_wq *wq)
402402
wq->priority = 0;
403403
wq->ats_dis = 0;
404404
clear_bit(WQ_FLAG_DEDICATED, &wq->flags);
405+
clear_bit(WQ_FLAG_BLOCK_ON_FAULT, &wq->flags);
405406
memset(wq->name, 0, WQ_NAME_SIZE);
406407
}
407408

0 commit comments

Comments
 (0)