Skip to contentSkip to conversation

staging/lustre/ptlrpc: fix ptlrpc_stop_pinger logic

PATCH In review Peng Tao 2 participants 4 messages Nov 21, 2013 – Nov 26, 2013 Staging

lore
Share & tools
lore

Peng Tao

author
#0 lore raw

PATCH 1/2 staging/lustre/ptlrpc: fix ptlrpc_stop_pinger logic

It was introduced due to a patch hunk when porting commit 20802057 (staging/lustre/ptlrpc: race in pinger).

Cc Andreas Dilger <[email protected]>
---
 drivers/staging/lustre/lustre/ptlrpc/pinger.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/ptlrpc/pinger.c +2 -2
index 1707e61..4684b03 100644
@@ -410,8 +410,8 @@ int ptlrpc_stop_pinger(void)
 	struct l_wait_info lwi = { 0 };
 	int rc = 0;
 
-	if (!thread_is_init(&pinger_thread) &&
-	    !thread_is_stopped(&pinger_thread))
+	if (thread_is_init(&pinger_thread) ||
+	    thread_is_stopped(&pinger_thread))
 		return -EALREADY;
 
 	ptlrpc_pinger_remove_timeouts();
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 2/2 staging/lustre/obdclass: add empty tailing member to ctl_table

This was mistakenly removed by commit 7fb3d1c5.
Now register_sysctl_table() complains about "No proc_handler".

Cc Andreas Dilger <[email protected]>
---
 .../lustre/lustre/obdclass/linux/linux-sysctl.c    |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c +4 -2
index d66be02..c1ef0c9 100644
@@ -392,7 +392,8 @@ static ctl_table_t obd_table[] = {
 		.maxlen   = sizeof(int),
 		.mode     = 0644,
 		.proc_handler = &proc_at_history
-	}
+	},
+	{}
 };
 
 static ctl_table_t parent_table[] = {
@@ -402,7 +403,8 @@ static ctl_table_t parent_table[] = {
 		.maxlen   = 0,
 		.mode     = 0555,
 		.child    = obd_table
-	}
+	},
+	{}
 };
 #endif
 
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Peng Tao
Quoted 2 lines · Peng Tao

It was introduced due to a patch hunk when porting commit 20802057 (staging/lustre/ptlrpc: race in pinger).

This patch was in 3.12, so this needs to go to the stable tree for 3.12, right? It also needs to get into 3.13-final, so please tell me that next time so I know where to apply it to.

thanks,

greg k-h

author
#3 lore raw
Quoted 8 lines · Greg Kroah-Hartman
Quoted 2 lines · Peng Tao

It was introduced due to a patch hunk when porting commit 20802057 (staging/lustre/ptlrpc: race in pinger).

This patch was in 3.12, so this needs to go to the stable tree for 3.12, right? It also needs to get into 3.13-final, so please tell me that next time so I know where to apply it to.

Thank you for helping add the stable tag. I will remember to add it next time.

Thanks,
Tao