md/raid5: Drop unnecessary call to r5c_check_stripe_cache_usage()
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 27 Jul 2022 21:05:58 +0000 (15:05 -0600)
committerSong Liu <song@kernel.org>
Thu, 28 Jul 2022 05:50:47 +0000 (22:50 -0700)
commit8f4792323a693d73b665a2794fc46e8eb9949bef
tree4bbb02930a60cd3cbbe1c7a661e2c75323d1e1d6
parent7d7a35b91e62ae0092cba5ff7b632cfdc6a5737c
md/raid5: Drop unnecessary call to r5c_check_stripe_cache_usage()

Now that raid5_get_active_stripe() has been refactored it is appearant
that r5c_check_stripe_cache_usage() doesn't need to be called in
the wait_for_stripe branch.

r5c_check_stripe_cache_usage() will only conditionally call
r5l_wake_reclaim(), but that function is called two lines later.

Drop the call for cleanup.

Reported-by: Martin Oliveira <martin.oliveira@eideticom.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5.c