svn commit: r215278 - user/weongyo/usb/sys/dev/usb

Weongyo Jeong weongyo at FreeBSD.org
Sun Nov 14 02:38:29 UTC 2010


Author: weongyo
Date: Sun Nov 14 02:38:29 2010
New Revision: 215278
URL: http://svn.freebsd.org/changeset/base/215278

Log:
  Uses taskqueue_cancel(9) interface for sleepout_stop which is recently
  committed.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_sleepout.c

Modified: user/weongyo/usb/sys/dev/usb/usb_sleepout.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_sleepout.c	Sun Nov 14 02:35:57 2010	(r215277)
+++ user/weongyo/usb/sys/dev/usb/usb_sleepout.c	Sun Nov 14 02:38:29 2010	(r215278)
@@ -108,7 +108,13 @@ sleepout_pending(struct sleepout_task *s
 int
 sleepout_stop(struct sleepout_task *st)
 {
+	struct sleepout *s = st->st_sleepout;
 
+	/*
+	 * XXX the return value is ignored but one thing clear is that the task
+	 * isn't on the task queue list after this moment.
+	 */
+	(void)taskqueue_cancel(s->s_taskqueue, &st->st_task, NULL);
 	return (callout_stop(&st->st_callout));
 }
 


More information about the svn-src-user mailing list