Skip to content

Commit c2951b7

Browse files
kcp-gitSomasundaram Krishnasamy
authored andcommitted
net/rds: Incorrect WARN_ON()
The WARN_ON() in rds_ib_free_caches() is incorrect as the code cannot assume that there is only one device. Orabug: 31718164 Signed-off-by: Ka-Cheong Poon <[email protected]> Tested-by: Jenny Xu <[email protected]> Reviewed-by: Darren Kenny <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent c0e2eaf commit c2951b7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

net/rds/ib.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,6 @@ static void rds_ib_free_caches(struct rds_ib_device *rds_ibdev)
343343

344344
rds_ib_free_frag_cache(rds_ibdev->i_cache_frags + i, cache_sz);
345345
}
346-
347-
/* If there is only 1 IB device, rds_ib_allocation should be 0
348-
* after the rds recv cache is freed.
349-
*/
350-
WARN_ON(atomic_read(&rds_ib_allocation));
351346
}
352347

353348
void rds_ib_nodev_connect(void)

0 commit comments

Comments
 (0)