We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02eae2 commit 653a52aCopy full SHA for 653a52a
ipt_NETFLOW.c
@@ -5238,7 +5238,7 @@ static unsigned int netflow_target(
5238
#else /* !SAMPLING_HASH */
5239
hash = hash_netflow(&tuple);
5240
#endif
5241
- read_lock(&htable_rwlock);
+ read_lock_bh(&htable_rwlock);
5242
stripe = &htable_stripes[hash & LOCK_COUNT_MASK];
5243
spin_lock(&stripe->lock);
5244
/* record */
@@ -5391,7 +5391,7 @@ static unsigned int netflow_target(
5391
5392
unlock_return:
5393
spin_unlock(&stripe->lock);
5394
- read_unlock(&htable_rwlock);
+ read_unlock_bh(&htable_rwlock);
5395
5396
return IPT_CONTINUE;
5397
}
0 commit comments