SUNPRC: cleanup RPC PipeFS pipes upcall interface
RPC pipe upcall doesn't requires only private pipe data. Thus RPC inode references in this code can be removed. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
d0fe13ba91
commit
d706ed1f50
@@ -589,7 +589,7 @@ nfs_idmap_id(struct idmap *idmap, struct idmap_hashtable *h,
|
||||
msg.len = sizeof(*im);
|
||||
|
||||
add_wait_queue(&idmap->idmap_wq, &wq);
|
||||
if (rpc_queue_upcall(idmap->idmap_dentry->d_inode, &msg) < 0) {
|
||||
if (rpc_queue_upcall(RPC_I(idmap->idmap_dentry->d_inode)->pipe, &msg) < 0) {
|
||||
remove_wait_queue(&idmap->idmap_wq, &wq);
|
||||
goto out;
|
||||
}
|
||||
@@ -650,7 +650,7 @@ nfs_idmap_name(struct idmap *idmap, struct idmap_hashtable *h,
|
||||
|
||||
add_wait_queue(&idmap->idmap_wq, &wq);
|
||||
|
||||
if (rpc_queue_upcall(idmap->idmap_dentry->d_inode, &msg) < 0) {
|
||||
if (rpc_queue_upcall(RPC_I(idmap->idmap_dentry->d_inode)->pipe, &msg) < 0) {
|
||||
remove_wait_queue(&idmap->idmap_wq, &wq);
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user