Skip to content

Commit 9734fe7

Browse files
lsgunthaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Song Liu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 3514da5 commit 9734fe7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/raid5.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,6 @@ raid5_get_active_stripe(struct r5conf *conf, sector_t sector,
810810
if (noblock)
811811
goto out;
812812

813-
r5c_check_stripe_cache_usage(conf);
814813
set_bit(R5_INACTIVE_BLOCKED, &conf->cache_state);
815814
r5l_wake_reclaim(conf->log, 0);
816815
wait_event_lock_irq(conf->wait_for_stripe,

0 commit comments

Comments
 (0)