Date: Sun, 14 Nov 2010 02:38:29 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r215278 - user/weongyo/usb/sys/dev/usb Message-ID: <201011140238.oAE2cTAS067590@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011140238.oAE2cTAS067590>