[LU-962] Add a feature to run a callback in ptlrpcd context Created: 04/Jan/12  Updated: 16/Aug/16  Resolved: 16/Aug/16

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.2.0

Type: Improvement Priority: Minor
Reporter: Jinshan Xiong (Inactive) Assignee: Jinshan Xiong (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Rank (Obsolete): 4773

 Description   

We need this functionality for async OSC RPC to support LU-884.

This is something like fake req, but it should be more well encapsulated. The interfaces would be like:

1. void *ptlrpc_allocate_work(struct obd_import *imp, int (*cb)(const struct lu_env *, void *), void *cbdata);
Initialize a callback data; handler will store a ptlrpc_request but caller shouldn't know this detail;

2. int ptlrpc_run_work(void *handler);
run the callback in ptlrpcd context if the request(handler) is NOT already in ptlrpcd list;

3. void ptlrpc_destroy_work(void *handler);



 Comments   
Comment by Jinshan Xiong (Inactive) [ 04/Jan/12 ]

patch is at: http://review.whamcloud.com/#change,1917

Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,client,el5,ofa #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = FAILURE
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/ptlrpcd.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/client.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,server,el5,ofa #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = FAILURE
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/ptlrpcd.c
  • lustre/ptlrpc/client.c
  • lustre/include/lustre_net.h
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/client.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/ptlrpcd.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » i686,server,el5,ofa #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = FAILURE
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/client.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/ptlrpcd.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » i686,client,el6,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/client.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/ptlrpcd.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/ptlrpcd.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/client.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/client.c
  • lustre/ptlrpc/ptlrpcd.c
  • lustre/include/lustre_net.h
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/include/lustre_net.h
  • lustre/ptlrpc/ptlrpcd.c
  • lustre/ptlrpc/client.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/ptlrpcd.c
  • lustre/ptlrpc/client.c
  • lustre/include/lustre_net.h
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/include/lustre_net.h
  • lustre/ptlrpc/client.c
  • lustre/ptlrpc/ptlrpcd.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » i686,server,el5,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/client.c
  • lustre/ptlrpc/ptlrpcd.c
  • lustre/include/lustre_net.h
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » i686,server,el6,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/ptlrpcd.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/client.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » i686,client,el5,inkernel #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = SUCCESS
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/ptlrpcd.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/client.c
Comment by Build Master (Inactive) [ 10/Jan/12 ]

Integrated in lustre-master » i686,client,el5,ofa #416
LU-962 ptlrpc: feature to run callback in ptlrpcd context (Revision 2064c2a7e616b172f72462884b23d899bfc040ff)

Result = FAILURE
Oleg Drokin : 2064c2a7e616b172f72462884b23d899bfc040ff
Files :

  • lustre/ptlrpc/client.c
  • lustre/include/lustre_net.h
  • lustre/ptlrpc/ptlrpcd.c
Comment by James A Simmons [ 16/Aug/16 ]

Looks like this work was completed long ago

Generated at Sat Feb 10 01:12:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.