Skip to contentSkip to conversation

sound/gus_pcm: insert set_current_state() before

PATCH Applied Nishanth Aravamudan 2 participants 2 messages Jan 21, 2005 – Jan 24, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 27/39 sound/gus_pcm: insert set_current_state() before

Hi,

Please consider applying.

Description: Insert set_current_state() before schedule_timeout(). Without the insertion, schedule_timeout() returns immediately.

sound/isa/gus/gus_pcm.c +1 -0
@@ -333,6 +333,7 @@ static int snd_gf1_pcm_poke_block(snd_gu
 			}
 		}
 		if (count > 0 && !in_interrupt()) {
+			set_current_state(TASK_INTERRUPTIBLE);
 			schedule_timeout(1);
 			if (signal_pending(current))
 				return -EAGAIN;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

Applied
#1 lore raw

Re: [PATCH 27/39] sound/gus_pcm: insert set_current_state() before schedule_timeout()

At Fri, 21 Jan 2005 11:36:36 -0800,

Quoted 9 lines · Nishanth Aravamudan

Hi,

Please consider applying.

Description: Insert set_current_state() before schedule_timeout(). Without the insertion, schedule_timeout() returns immediately.

Thanks, applied to ALSA tree together with other patches.

Only the patches for vx_core.c and emu8000.c are slightly modified due to the reason I posted.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl