Re: [PATCH] w1: w1_process() is not freezable kthread
On Sun, 7 Feb 2016, GregKH wrote: > I can't find this patch anywhere in my queue, can you please resend it > to me with the ack so I can apply it? Greg, please find it below. Thanks. From: Jiri Kosina Subject: [PATCH] w1: w1_process() is not freezable kthread From: Jiri Kosina w1_process() calls try_to_freeze(), but the thread doesn't mark itself freezable through set_freezable(), so the try_to_freeze() call is useless. Acked-by: Evgeniy Polyakov Signed-off-by: Jiri Kosina --- drivers/w1/w1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index c9a7ff6..89a7847 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -1147,7 +1147,6 @@ int w1_process(void *data) jremain = 1; } - try_to_freeze(); __set_current_state(TASK_INTERRUPTIBLE); /* hold list_mutex until after interruptible to prevent loosing -- Jiri Kosina SUSE Labs
Re: [PATCH] w1: w1_process() is not freezable kthread
On Sun, 7 Feb 2016, GregKH wrote: > I can't find this patch anywhere in my queue, can you please resend it > to me with the ack so I can apply it? Greg, please find it below. Thanks. From: Jiri Kosina <jkos...@suse.cz> Subject: [PATCH] w1: w1_process() is not freezable kthread From: Jiri Kosina <jkos...@suse.cz> w1_process() calls try_to_freeze(), but the thread doesn't mark itself freezable through set_freezable(), so the try_to_freeze() call is useless. Acked-by: Evgeniy Polyakov <z...@ioremap.net> Signed-off-by: Jiri Kosina <jkos...@suse.cz> --- drivers/w1/w1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index c9a7ff6..89a7847 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -1147,7 +1147,6 @@ int w1_process(void *data) jremain = 1; } - try_to_freeze(); __set_current_state(TASK_INTERRUPTIBLE); /* hold list_mutex until after interruptible to prevent loosing -- Jiri Kosina SUSE Labs
Re: [PATCH] w1: w1_process() is not freezable kthread
On Thu, Nov 19, 2015 at 04:49:41PM +0100, Jiri Kosina wrote: > On Thu, 5 Nov 2015, Evgeniy Polyakov wrote: > > > > I fail to see why this kthread should be freezable at all. There is no way > > > for w1 device to generate new I/O requests that should be written out to > > > filesystem, is it? > > > > w1 doesn't generate such requests, but it was more to make this thread > > consistent with majority of other threads in the kernel. > > Most of which actually don't need freezer at all, and only contribute to > the overall confusion regarding what kthread freezer is actually for. > > It's my long-term goal to fix this situation (and this patch is part of > some preparatory steps :) ). > > > Ok, I'm not against it, Greg please pull this patch into your tree. > > > > Acked-by: Evgeniy Polyakov > > Greg, do you plan to take this please? I don't seem to see it in > linux-next as of today. I can't find this patch anywhere in my queue, can you please resend it to me with the ack so I can apply it? thanks, greg k-h
Re: [PATCH] w1: w1_process() is not freezable kthread
On Thu, Nov 19, 2015 at 04:49:41PM +0100, Jiri Kosina wrote: > On Thu, 5 Nov 2015, Evgeniy Polyakov wrote: > > > > I fail to see why this kthread should be freezable at all. There is no way > > > for w1 device to generate new I/O requests that should be written out to > > > filesystem, is it? > > > > w1 doesn't generate such requests, but it was more to make this thread > > consistent with majority of other threads in the kernel. > > Most of which actually don't need freezer at all, and only contribute to > the overall confusion regarding what kthread freezer is actually for. > > It's my long-term goal to fix this situation (and this patch is part of > some preparatory steps :) ). > > > Ok, I'm not against it, Greg please pull this patch into your tree. > > > > Acked-by: Evgeniy Polyakov> > Greg, do you plan to take this please? I don't seem to see it in > linux-next as of today. I can't find this patch anywhere in my queue, can you please resend it to me with the ack so I can apply it? thanks, greg k-h
Re: [PATCH] w1: w1_process() is not freezable kthread
On Thu, Nov 19, 2015 at 04:49:41PM +0100, Jiri Kosina wrote: > On Thu, 5 Nov 2015, Evgeniy Polyakov wrote: > > > > I fail to see why this kthread should be freezable at all. There is no way > > > for w1 device to generate new I/O requests that should be written out to > > > filesystem, is it? > > > > w1 doesn't generate such requests, but it was more to make this thread > > consistent with majority of other threads in the kernel. > > Most of which actually don't need freezer at all, and only contribute to > the overall confusion regarding what kthread freezer is actually for. > > It's my long-term goal to fix this situation (and this patch is part of > some preparatory steps :) ). > > > Ok, I'm not against it, Greg please pull this patch into your tree. > > > > Acked-by: Evgeniy Polyakov > > Greg, do you plan to take this please? I don't seem to see it in > linux-next as of today. Give me a chance to catch up on things, the merge window was just over and I just returned from another conference... thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
On Thu, 5 Nov 2015, Evgeniy Polyakov wrote: > > I fail to see why this kthread should be freezable at all. There is no way > > for w1 device to generate new I/O requests that should be written out to > > filesystem, is it? > > w1 doesn't generate such requests, but it was more to make this thread > consistent with majority of other threads in the kernel. Most of which actually don't need freezer at all, and only contribute to the overall confusion regarding what kthread freezer is actually for. It's my long-term goal to fix this situation (and this patch is part of some preparatory steps :) ). > Ok, I'm not against it, Greg please pull this patch into your tree. > > Acked-by: Evgeniy Polyakov Greg, do you plan to take this please? I don't seem to see it in linux-next as of today. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
On Thu, Nov 19, 2015 at 04:49:41PM +0100, Jiri Kosina wrote: > On Thu, 5 Nov 2015, Evgeniy Polyakov wrote: > > > > I fail to see why this kthread should be freezable at all. There is no way > > > for w1 device to generate new I/O requests that should be written out to > > > filesystem, is it? > > > > w1 doesn't generate such requests, but it was more to make this thread > > consistent with majority of other threads in the kernel. > > Most of which actually don't need freezer at all, and only contribute to > the overall confusion regarding what kthread freezer is actually for. > > It's my long-term goal to fix this situation (and this patch is part of > some preparatory steps :) ). > > > Ok, I'm not against it, Greg please pull this patch into your tree. > > > > Acked-by: Evgeniy Polyakov> > Greg, do you plan to take this please? I don't seem to see it in > linux-next as of today. Give me a chance to catch up on things, the merge window was just over and I just returned from another conference... thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
On Thu, 5 Nov 2015, Evgeniy Polyakov wrote: > > I fail to see why this kthread should be freezable at all. There is no way > > for w1 device to generate new I/O requests that should be written out to > > filesystem, is it? > > w1 doesn't generate such requests, but it was more to make this thread > consistent with majority of other threads in the kernel. Most of which actually don't need freezer at all, and only contribute to the overall confusion regarding what kthread freezer is actually for. It's my long-term goal to fix this situation (and this patch is part of some preparatory steps :) ). > Ok, I'm not against it, Greg please pull this patch into your tree. > > Acked-by: Evgeniy PolyakovGreg, do you plan to take this please? I don't seem to see it in linux-next as of today. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
Hi 28.10.2015, 08:26, "Jiri Kosina" : > On Tue, 27 Oct 2015, Evgeniy Polyakov wrote: > >> > w1_process() calls try_to_freeze(), but the thread doesn't mark itself >> > freezable through set_freezable(), so the try_to_freeze() call is useless. >> >> I believe it is better to mark it freezable, what do you think? Its task >> is useless if anyone else goes sleeping, it should freeze too. > > I fail to see why this kthread should be freezable at all. There is no way > for w1 device to generate new I/O requests that should be written out to > filesystem, is it? w1 doesn't generate such requests, but it was more to make this thread consistent with majority of other threads in the kernel. Ok, I'm not against it, Greg please pull this patch into your tree. Acked-by: Evgeniy Polyakov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
Hi 28.10.2015, 08:26, "Jiri Kosina": > On Tue, 27 Oct 2015, Evgeniy Polyakov wrote: > >> > w1_process() calls try_to_freeze(), but the thread doesn't mark itself >> > freezable through set_freezable(), so the try_to_freeze() call is useless. >> >> I believe it is better to mark it freezable, what do you think? Its task >> is useless if anyone else goes sleeping, it should freeze too. > > I fail to see why this kthread should be freezable at all. There is no way > for w1 device to generate new I/O requests that should be written out to > filesystem, is it? w1 doesn't generate such requests, but it was more to make this thread consistent with majority of other threads in the kernel. Ok, I'm not against it, Greg please pull this patch into your tree. Acked-by: Evgeniy Polyakov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
On Tue, 27 Oct 2015, Evgeniy Polyakov wrote: > > w1_process() calls try_to_freeze(), but the thread doesn't mark itself > > freezable through set_freezable(), so the try_to_freeze() call is useless. > > I believe it is better to mark it freezable, what do you think? Its task > is useless if anyone else goes sleeping, it should freeze too. I fail to see why this kthread should be freezable at all. There is no way for w1 device to generate new I/O requests that should be written out to filesystem, is it? Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
Hi 26.10.2015, 08:53, "Jiri Kosina" : > From: Jiri Kosina > > w1_process() calls try_to_freeze(), but the thread doesn't mark itself > freezable through set_freezable(), so the try_to_freeze() call is useless. I believe it is better to mark it freezable, what do you think? Its task is useless if anyone else goes sleeping, it should freeze too. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
Hi 26.10.2015, 08:53, "Jiri Kosina": > From: Jiri Kosina > > w1_process() calls try_to_freeze(), but the thread doesn't mark itself > freezable through set_freezable(), so the try_to_freeze() call is useless. I believe it is better to mark it freezable, what do you think? Its task is useless if anyone else goes sleeping, it should freeze too. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] w1: w1_process() is not freezable kthread
On Tue, 27 Oct 2015, Evgeniy Polyakov wrote: > > w1_process() calls try_to_freeze(), but the thread doesn't mark itself > > freezable through set_freezable(), so the try_to_freeze() call is useless. > > I believe it is better to mark it freezable, what do you think? Its task > is useless if anyone else goes sleeping, it should freeze too. I fail to see why this kthread should be freezable at all. There is no way for w1 device to generate new I/O requests that should be written out to filesystem, is it? Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] w1: w1_process() is not freezable kthread
From: Jiri Kosina w1_process() calls try_to_freeze(), but the thread doesn't mark itself freezable through set_freezable(), so the try_to_freeze() call is useless. Signed-off-by: Jiri Kosina --- drivers/w1/w1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index c9a7ff6..89a7847 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -1147,7 +1147,6 @@ int w1_process(void *data) jremain = 1; } - try_to_freeze(); __set_current_state(TASK_INTERRUPTIBLE); /* hold list_mutex until after interruptible to prevent loosing -- 2.1.2 -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] w1: w1_process() is not freezable kthread
From: Jiri Kosinaw1_process() calls try_to_freeze(), but the thread doesn't mark itself freezable through set_freezable(), so the try_to_freeze() call is useless. Signed-off-by: Jiri Kosina --- drivers/w1/w1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index c9a7ff6..89a7847 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -1147,7 +1147,6 @@ int w1_process(void *data) jremain = 1; } - try_to_freeze(); __set_current_state(TASK_INTERRUPTIBLE); /* hold list_mutex until after interruptible to prevent loosing -- 2.1.2 -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/