mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:10:52 +07:00
SUNRPC: remove BUG_ON from svc_pool_map_set_cpumask
Replace BUG_ON() with a WARN() and early return. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
f30dfbba16
commit
1bd58aaff4
@ -324,7 +324,9 @@ svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx)
|
||||
* The caller checks for sv_nrpools > 1, which
|
||||
* implies that we've been initialized.
|
||||
*/
|
||||
BUG_ON(m->count == 0);
|
||||
WARN_ON_ONCE(m->count == 0);
|
||||
if (m->count == 0)
|
||||
return;
|
||||
|
||||
switch (m->mode) {
|
||||
case SVC_POOL_PERCPU:
|
||||
|
Loading…
Reference in New Issue
Block a user