Skip to content

Commit

Permalink
Coda: mount hangs because of missed REQ_WRITE rename
Browse files Browse the repository at this point in the history
Coda's REQ_* defines were renamed to avoid clashes with the block layer
(commit 4aeefdc: "coda: fixup clash with block layer REQ_*
defines").

However one was missed and response messages are no longer matched with
requests and waiting threads are no longer woken up.  This patch fixes
this.

Signed-off-by: Jan Harkes <[email protected]>
[ Also fixed up whitespace while at it  -Linus ]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jaharkes authored and torvalds committed Sep 19, 2010
1 parent 151b6a5 commit 112d421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/coda/psdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf,
}

/* adjust outsize. is this useful ?? */
req->uc_outSize = nbytes;
req->uc_flags |= REQ_WRITE;
req->uc_outSize = nbytes;
req->uc_flags |= CODA_REQ_WRITE;
count = nbytes;

/* Convert filedescriptor into a file handle */
Expand Down

0 comments on commit 112d421

Please sign in to comment.