Commit ca3574bd authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

exit: Rename module_put_and_exit to module_put_and_kthread_exit



Update module_put_and_exit to call kthread_exit instead of do_exit.

Change the name to reflect this change in functionality.  All of the
users of module_put_and_exit are causing the current kthread to exit
so this change makes it clear what is happening.  There is no
functional change.

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent bbda86e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ static int cryptomgr_probe(void *data)
	complete_all(&param->larval->completion);
	crypto_alg_put(&param->larval->alg);
	kfree(param);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
}

static int cryptomgr_schedule_probe(struct crypto_larval *larval)
@@ -190,7 +190,7 @@ static int cryptomgr_test(void *data)
	crypto_alg_tested(param->driver, err);

	kfree(param);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
}

static int cryptomgr_schedule_test(struct crypto_alg *alg)
+1 −1
Original line number Diff line number Diff line
@@ -1139,7 +1139,7 @@ cifs_demultiplex_thread(void *p)
	}

	memalloc_noreclaim_restore(noreclaim_flag);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
}

/*
+2 −2
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ nfs4_callback_svc(void *vrqstp)
		svc_process(rqstp);
	}
	svc_exit_thread(rqstp);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
	return 0;
}

@@ -137,7 +137,7 @@ nfs41_callback_svc(void *vrqstp)
		}
	}
	svc_exit_thread(rqstp);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
	return 0;
}

+1 −1
Original line number Diff line number Diff line
@@ -2689,6 +2689,6 @@ static int nfs4_run_state_manager(void *ptr)
	allow_signal(SIGKILL);
	nfs4_state_manager(clp);
	nfs_put_client(clp);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -986,7 +986,7 @@ nfsd(void *vrqstp)

	/* Release module */
	mutex_unlock(&nfsd_mutex);
	module_put_and_exit(0);
	module_put_and_kthread_exit(0);
	return 0;
}

Loading