data = dm_bufio_get(v->bufio, hash_block, &buf);
if (IS_ERR_OR_NULL(data)) {
/*
- * In tasklet and the hash was not in the bufio cache.
- * Return early and resume execution from a work-queue
- * to read the hash from disk.
+ * In softirq and the hash was not in the bufio cache.
+ * Return early and resume execution from a kworker to
+ * read the hash from disk.
*/
return -EAGAIN;
}
else if (static_branch_unlikely(&use_bh_wq_enabled) && io->in_bh) {
/*
* Error handling code (FEC included) cannot be run in a
- * tasklet since it may sleep, so fallback to work-queue.
+ * softirq since it may sleep, so fallback to a kworker.
*/
r = -EAGAIN;
goto release_ret_r;
if (static_branch_unlikely(&use_bh_wq_enabled) && io->in_bh) {
/*
- * Error handling code (FEC included) cannot be run in the
- * BH workqueue, so fallback to a standard workqueue.
+ * Error handling code (FEC included) cannot be run in a
+ * softirq since it may sleep, so fallback to a kworker.
*/
return -EAGAIN;
}
if (static_branch_unlikely(&use_bh_wq_enabled) && io->in_bh) {
/*
- * Copy the iterator in case we need to restart
- * verification in a work-queue.
+ * Copy the iterator in case we need to restart verification in
+ * a kworker.
*/
iter_copy = io->iter;
iter = &iter_copy;
io->in_bh = true;
err = verity_verify_io(io);
if (err == -EAGAIN || err == -ENOMEM) {
- /* fallback to retrying with work-queue */
+ /* fallback to retrying in a kworker */
INIT_WORK(&io->work, verity_work);
queue_work(io->v->verify_wq, &io->work);
return;
* reducing wait times when reading from a dm-verity device.
*
* Also as required for the "try_verify_in_tasklet" feature: WQ_HIGHPRI
- * allows verify_wq to preempt softirq since verification in BH workqueue
+ * allows verify_wq to preempt softirq since verification in softirq
* will fall-back to using it for error handling (or if the bufio cache
* doesn't have required hashes).
*/