* [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
@ 2016-03-15 15:19 Amitoj Kaur Chawla
2016-03-15 15:44 ` [Outreachy kernel] " Greg KH
2016-03-16 14:49 ` Tejun Heo
0 siblings, 2 replies; 7+ messages in thread
From: Amitoj Kaur Chawla @ 2016-03-15 15:19 UTC (permalink / raw)
To: outreachy-kernel; +Cc: tj
flush_scheduled_work is scheduled for deprecation.
Replace cancel_delayed_work and flush_scheduled_work with
cancel_delayed_work_sync instead to ensure there is no pending or
running work item.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
---
drivers/iio/light/tsl2563.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/iio/light/tsl2563.c b/drivers/iio/light/tsl2563.c
index 12731d6..57b108c 100644
--- a/drivers/iio/light/tsl2563.c
+++ b/drivers/iio/light/tsl2563.c
@@ -806,8 +806,7 @@ static int tsl2563_probe(struct i2c_client *client,
return 0;
fail:
- cancel_delayed_work(&chip->poweroff_work);
- flush_scheduled_work();
+ cancel_delayed_work_sync(&chip->poweroff_work);
return err;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
2016-03-15 15:19 [PATCH] iio: light: tsl2563: Remove flush_scheduled_work Amitoj Kaur Chawla
@ 2016-03-15 15:44 ` Greg KH
2016-03-15 16:39 ` Amitoj Kaur Chawla
2016-03-16 14:49 ` Tejun Heo
1 sibling, 1 reply; 7+ messages in thread
From: Greg KH @ 2016-03-15 15:44 UTC (permalink / raw)
To: Amitoj Kaur Chawla; +Cc: outreachy-kernel, tj
On Tue, Mar 15, 2016 at 08:49:51PM +0530, Amitoj Kaur Chawla wrote:
> flush_scheduled_work is scheduled for deprecation.
> Replace cancel_delayed_work and flush_scheduled_work with
> cancel_delayed_work_sync instead to ensure there is no pending or
> running work item.
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
> drivers/iio/light/tsl2563.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Please only touch files in drivers/staging/ for the application process,
I can not take any patches outside of that area.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
2016-03-15 15:44 ` [Outreachy kernel] " Greg KH
@ 2016-03-15 16:39 ` Amitoj Kaur Chawla
2016-03-15 16:51 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Amitoj Kaur Chawla @ 2016-03-15 16:39 UTC (permalink / raw)
To: Greg KH; +Cc: outreachy-kernel, Tejun Heo
On Tue, Mar 15, 2016 at 9:14 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
>> drivers/iio/light/tsl2563.c | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> Please only touch files in drivers/staging/ for the application process,
> I can not take any patches outside of that area.
>
> thanks,
>
> greg k-h
Actually, Tejun gave the go ahead to move on to other drivers since
the exhaustion of opportunities in staging drivers hence the patches
in drivers/net/ and drivers/iio/.
Amitoj
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
2016-03-15 16:39 ` Amitoj Kaur Chawla
@ 2016-03-15 16:51 ` Greg KH
2016-03-15 16:53 ` Amitoj Kaur Chawla
2016-03-16 14:46 ` Tejun Heo
0 siblings, 2 replies; 7+ messages in thread
From: Greg KH @ 2016-03-15 16:51 UTC (permalink / raw)
To: Amitoj Kaur Chawla; +Cc: outreachy-kernel, Tejun Heo
On Tue, Mar 15, 2016 at 10:09:58PM +0530, Amitoj Kaur Chawla wrote:
> On Tue, Mar 15, 2016 at 9:14 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> >> drivers/iio/light/tsl2563.c | 3 +--
> >> 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > Please only touch files in drivers/staging/ for the application process,
> > I can not take any patches outside of that area.
> >
> > thanks,
> >
> > greg k-h
> Actually, Tejun gave the go ahead to move on to other drivers since
> the exhaustion of opportunities in staging drivers hence the patches
> in drivers/net/ and drivers/iio/.
Ok, but note, I can't do anything with them, so you need to be
responsible for getting them to the correct mailing lists and
maintainers after Tejun acks them.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
2016-03-15 16:51 ` Greg KH
@ 2016-03-15 16:53 ` Amitoj Kaur Chawla
2016-03-16 14:46 ` Tejun Heo
1 sibling, 0 replies; 7+ messages in thread
From: Amitoj Kaur Chawla @ 2016-03-15 16:53 UTC (permalink / raw)
To: Greg KH; +Cc: outreachy-kernel, Tejun Heo
On Tue, Mar 15, 2016 at 10:21 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> Ok, but note, I can't do anything with them, so you need to be
> responsible for getting them to the correct mailing lists and
> maintainers after Tejun acks them.
>
> thanks,
>
> greg k-h
Understood, thanks for the heads up.
Amitoj
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
2016-03-15 16:51 ` Greg KH
2016-03-15 16:53 ` Amitoj Kaur Chawla
@ 2016-03-16 14:46 ` Tejun Heo
1 sibling, 0 replies; 7+ messages in thread
From: Tejun Heo @ 2016-03-16 14:46 UTC (permalink / raw)
To: Greg KH; +Cc: Amitoj Kaur Chawla, outreachy-kernel
Hello, Greg.
On Tue, Mar 15, 2016 at 09:51:32AM -0700, Greg KH wrote:
> > Actually, Tejun gave the go ahead to move on to other drivers since
> > the exhaustion of opportunities in staging drivers hence the patches
> > in drivers/net/ and drivers/iio/.
>
> Ok, but note, I can't do anything with them, so you need to be
> responsible for getting them to the correct mailing lists and
> maintainers after Tejun acks them.
Yeah, the simple conversions under drivers/staging are all done now
and there are plenty of fairly mechanical conversions outside. I'll
help push the patches through.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Outreachy kernel] [PATCH] iio: light: tsl2563: Remove flush_scheduled_work
2016-03-15 15:19 [PATCH] iio: light: tsl2563: Remove flush_scheduled_work Amitoj Kaur Chawla
2016-03-15 15:44 ` [Outreachy kernel] " Greg KH
@ 2016-03-16 14:49 ` Tejun Heo
1 sibling, 0 replies; 7+ messages in thread
From: Tejun Heo @ 2016-03-16 14:49 UTC (permalink / raw)
To: Amitoj Kaur Chawla; +Cc: outreachy-kernel
Hello, Amiotj.
On Tue, Mar 15, 2016 at 08:49:51PM +0530, Amitoj Kaur Chawla wrote:
> flush_scheduled_work is scheduled for deprecation.
> Replace cancel_delayed_work and flush_scheduled_work with
> cancel_delayed_work_sync instead to ensure there is no pending or
> running work item.
It'd be nice to note that there are no further dependencies flushed by
flush_scheduled_work() - ie. verify and note that there are no other
instances of schedule_work() usages by the driver or if there are they
are drained properly other ways.
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Can you please update the description accoringly, add the ack and
repost with the driver maintainers cc'd?
Thanks!
--
tejun
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-03-16 14:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-15 15:19 [PATCH] iio: light: tsl2563: Remove flush_scheduled_work Amitoj Kaur Chawla
2016-03-15 15:44 ` [Outreachy kernel] " Greg KH
2016-03-15 16:39 ` Amitoj Kaur Chawla
2016-03-15 16:51 ` Greg KH
2016-03-15 16:53 ` Amitoj Kaur Chawla
2016-03-16 14:46 ` Tejun Heo
2016-03-16 14:49 ` Tejun Heo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.