mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
nfp: print a message when mutex wait is interrupted
When waiting for an NFP mutex is interrupted print a message to make root causing later error messages easier. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5496295aef
commit
bc05f9bcd8
@ -211,8 +211,11 @@ int nfp_cpp_mutex_lock(struct nfp_cpp_mutex *mutex)
|
||||
break;
|
||||
|
||||
err = msleep_interruptible(timeout_ms);
|
||||
if (err != 0)
|
||||
if (err != 0) {
|
||||
nfp_info(mutex->cpp,
|
||||
"interrupted waiting for NFP mutex\n");
|
||||
return -ERESTARTSYS;
|
||||
}
|
||||
|
||||
if (time_is_before_eq_jiffies(warn_at)) {
|
||||
warn_at = jiffies + NFP_MUTEX_WAIT_NEXT_WARN * HZ;
|
||||
|
Loading…
Reference in New Issue
Block a user