Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1406216

[PATCH 2/4] bcache: bch_allocator_thread() is not freezable

From Jiri Kosina <jikos@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 2/4] bcache: bch_allocator_thread() is not freezable
Date 2016-05-24 16:40 +0200
Message-ID <rClF0-4qa-39@gated-at.bofh.it> (permalink)
References <rClEZ-4qa-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Jiri Kosina <jkosina@suse.cz>

bch_allocator_thread() is calling try_to_freeze(), but that's just an 
expensive no-op given the fact that the thread is not marked freezable.

Bucket allocator has to be up and running to the very last stages of the 
suspend, as the bcache I/O that's in flight (think of writing an 
hibernation image to a swap device served by bcache).

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
 drivers/md/bcache/alloc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c
index 8eeab72..ca4abe1 100644
--- a/drivers/md/bcache/alloc.c
+++ b/drivers/md/bcache/alloc.c
@@ -64,7 +64,6 @@
 #include "btree.h"
 
 #include <linux/blkdev.h>
-#include <linux/freezer.h>
 #include <linux/kthread.h>
 #include <linux/random.h>
 #include <trace/events/bcache.h>
@@ -288,7 +287,6 @@ do {									\
 		if (kthread_should_stop())				\
 			return 0;					\
 									\
-		try_to_freeze();					\
 		schedule();						\
 		mutex_lock(&(ca)->set->bucket_lock);			\
 	}								\

-- 
Jiri Kosina
SUSE Labs

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/4] bcache: bch_writeback_thread() is not freezable Jiri Kosina <jikos@kernel.org> - 2016-05-24 16:40 +0200
  [PATCH 4/4] MAINTAINERS: mark bcache as orphan Jiri Kosina <jikos@kernel.org> - 2016-05-24 16:40 +0200
    Re: [PATCH 4/4] MAINTAINERS: mark bcache as orphan Joe Perches <joe@perches.com> - 2016-05-24 16:50 +0200
      Re: [PATCH 4/4] MAINTAINERS: mark bcache as orphan Jiri Kosina <jikos@kernel.org> - 2016-05-25 07:10 +0200
        Re: [PATCH 4/4] MAINTAINERS: mark bcache as orphan Jens Axboe <axboe@kernel.dk> - 2016-05-25 19:40 +0200
  [PATCH 2/4] bcache: bch_allocator_thread() is not freezable Jiri Kosina <jikos@kernel.org> - 2016-05-24 16:40 +0200
  Re: [PATCH 1/4] bcache: bch_writeback_thread() is not freezable Jens Axboe <axboe@kernel.dk> - 2016-05-24 17:10 +0200

csiph-web