diff options
author | Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com> | 2011-03-14 22:12:49 +0100 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2011-03-22 22:32:47 +0100 |
commit | a01a984035ea799b14aa5e874dcaeb122f09c4b4 (patch) | |
tree | 7998ac0aab9c53c25dde38710a4ab60ac7d2935f /scripts/mkuboot.sh | |
parent | [net/9p] unconditional wake_up to proc waiting for space on VirtIO ring (diff) | |
download | linux-a01a984035ea799b14aa5e874dcaeb122f09c4b4.tar.xz linux-a01a984035ea799b14aa5e874dcaeb122f09c4b4.zip |
[net/9p] Set the condition just before waking up.
Given that the sprious wake-ups are common, we need to move the
condition setting right next to the wake_up(). After setting the condition
to req->status = REQ_STATUS_RCVD, sprious wakeups may cause the
virtqueue back on the free list for someone else to use.
This may result in kernel panic while relasing the pinned pages
in p9_release_req_pages().
Also rearranged the while loop in req_done() for better redability.
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'scripts/mkuboot.sh')
0 files changed, 0 insertions, 0 deletions