Commit 411c9699 authored by John L. Hammond's avatar John L. Hammond Committed by Greg Kroah-Hartman

staging/lustre/llite: correct request handling after ll_lookup_it()

In the FIFO cases of ll_atomic_open() and ll_lookup_nd() remove
spurious calls to ptlrpc_req_finished(). Explain that these cases are
unreachable in practice anyway.
Signed-off-by: default avatarJohn L. Hammond <>
Intel-bug-id: default avatarDmitry Eremin <>
Reviewed-by: default avatarLai Siyao <>
Signed-off-by: default avatarOleg Drokin <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 1b02bde3
......@@ -622,13 +622,10 @@ static int ll_atomic_open(struct inode *dir, struct dentry *dentry,
if (d_really_is_positive(dentry) && it_disposition(it, DISP_OPEN_OPEN)) {
/* Open dentry. */
if (S_ISFIFO(d_inode(dentry)->i_mode)) {
/* We cannot call open here as it would
* deadlock.
/* We cannot call open here as it might
* deadlock. This case is unreachable in
* practice because of OBD_CONNECT_NODEVOH.
if (it_disposition(it, DISP_ENQ_OPEN_REF))
(struct ptlrpc_request *)
rc = finish_no_open(file, de);
} else {
file->private_data = it;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment