Re: [PATCH 0/4] Change return values from queue_work et al.
- From: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 18:06:14 +0200
Alan Stern wrote:
...
Note that the change falls within the bounds of the documented...
behavior, in the sense that any code which was originally written
correctly (i.e., in accordance with the documentation) will continue to
work correctly without generating any warnings.
You are right that there is no comment (or better yet, kerneldoc
comment) about what happens if an instance of work_struct is enqueued
twice. However, /a/ there is the source and /b/ Corbet, Rubini,
Kroah-Hartman: LDD3 describes in detail in an easily understood section
how workqueues are to be used. (Workqueues in Linux 2.6.10, that is.)
...
If the...
usage is correct then there is no harm in leaving the WARN_ON call where
it is. If the usage is wrong then the call needs to be fixed, and the
maintainer for the subsystem containing the call will soon find out about
it, thanks to the WARN_ON.
Acceptable on second thought, particularly in light of your new
replacement functions with improved semantics of their return value.
Although there are cases where the WARN_ON might not go off during a
long time, or where an update won't happen in many months despite
hundreds of reports at dozens of mailing lists and bugzillas.
--
Stefan Richter
-=====-=-==- =--- ===-=
http://arcgraph.de/sr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH 0/4] Change return values from queue_work et al.
- From: Alan Stern
- Re: [PATCH 0/4] Change return values from queue_work et al.
- Prev by Date: Re: [stable] [PATCH] Linux 2.6.17.11 - fix compilation error on IA64 (try #3)
- Next by Date: Re: The 3G (or nG) Kernel Memory Space Offset
- Previous by thread: Re: [PATCH 0/4] Change return values from queue_work et al.
- Next by thread: Re: [PATCH 0/4] Change return values from queue_work et al.
- Index(es):
Relevant Pages
|