Re: [PATCH] md/raid5-cache: removes unnecessary write-through mode judgments
From: Shaohua Li <shli@kernel.org>
Date: 2016-12-16 20:12:44
From: Shaohua Li <shli@kernel.org>
Date: 2016-12-16 20:12:44
On Tue, Dec 13, 2016 at 01:55:27PM +0800, JackieLiu wrote:
The write-through mode has been returned in front of the function, do not need to do it again.
applied, thanks!
Signed-off-by: JackieLiu <redacted> --- drivers/md/raid5-cache.c | 3 --- 1 file changed, 3 deletions(-)diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index 6d1a150..4dd8e4e 100644 --- a/drivers/md/raid5-cache.c +++ b/drivers/md/raid5-cache.c@@ -2418,9 +2418,6 @@ void r5c_finish_stripe_write_out(struct r5conf *conf, if (do_wakeup) wake_up(&conf->wait_for_overlap); - if (conf->log->r5c_journal_mode == R5C_JOURNAL_MODE_WRITE_THROUGH) - return; - spin_lock_irq(&conf->log->stripe_in_journal_lock); list_del_init(&sh->r5c); spin_unlock_irq(&conf->log->stripe_in_journal_lock);-- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html