From: Venkateswararao Jujjuri (JV) Date: Mon, 14 Mar 2011 21:12:49 +0000 (-0700) Subject: [net/9p] Set the condition just before waking up. X-Git-Tag: v2.6.39-rc1~381^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a01a984035ea799b14aa5e874dcaeb122f09c4b4;p=pandora-kernel.git [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 Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed