We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
submit_sheep_request should not be in atomic context but submit_blocking_sheep_request did so. So I did a fix as the following:
static void submit_blocking_sheep_request(struct sbd_device *dev, uint64_t oid) { struct sheep_request *req, *t; write_lock(&dev->blocking_lock); list_for_each_entry_safe(req, t, &dev->blocking_head, list) { if (req->oid != oid) continue; list_del_init(&req->list); // Fix here, we unlock, do request, and lock it again. write_unlock(&dev->blocking_lock); submit_sheep_request(req); write_lock(&dev->blocking_lock); } write_unlock(&dev->blocking_lock); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
submit_sheep_request should not be in atomic context but submit_blocking_sheep_request did so.
So I did a fix as the following:
The text was updated successfully, but these errors were encountered: