Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 18 Apr 1998 13:46:42 +0200 (CEST)
On Fri, 17 Apr 1998, Tim Waugh wrote:
>On Thu, 16 Apr 1998, Andrea Arcangeli wrote:
>
>> No. You missed the underlined parport_claim() before wake_up the other
>> waiter:
>
>But it won't do for drivers who are using parport_claim and registering a
>wakeup (instead of using parport_claim_or_block), for whatever reason.
You are perfectly right. We are currently using the waitlist only for
device that are sleeping in parport_claim_or_block() while we can use it
for all device and run the parport_claim() that own the port inside
parport_release() for all devices (as it' s now done only for the device
sleeping in ..claim_or_block()). The use of the waitlist will allow a real
round-robin scheduling between devices.
This patch will change the waitlist usage making it very smarter.
For devices that are not sleeping in parport_claim_or_block() and that
provides a wakeup callback we could assume that the parport_claim() is run
from the callback, but since it' s so simple change that I updated all
(I hope ;-) pardevice to the new regime.
If somebody will use the old wakeup callback style, recalling
parport_claim() inside the wakeup callback, this will not broke. Only the
guy will see a ton of messages like this:
parport0: ppa already owner
I also removed the sleep in parport_pc since I really don' t think it can
help.
This patch also automatically fix the LP_PREEMPT() define in lp.h that
currently is wrong (I noticed it thinking about your last email).
I ask all people that can test the parport sharing to try this patch and
feedback.
Andrea[s] Arcangeli
begin 644 parport-2.1.96-0.1.diff.gz
M'XL(",:..#4``W!A<G!O<G0M,BXQ+CDV+3`N,2YD:69F`+U:>6_;QA+_F_X4
MZP1Q)$NR=5@^)*2)&CNI4%=.'0<%W@&"$E<6:XID>MZP1Q)$NR=5@^)*2)&CNI4%=.'0<%W@&"$E<6:XID>5@Q7MW/_N;8Y2&1LOT>
MT**)F-V=W=DY?S-DJ]42KN,EWP_MT+F7872X=*+986"MT**)F-V=W=DY?S-DJ]42KN,EWP_MT+F7872X=*+986"%@1_&9K2P0GDP._!#
MY];X:L5B%(2B<RK:W4&O/VAW1>?L['2GT6@\8Y,\?:<WZ)P,\`'I/WP0K=Y1
M\T0TZ.\/'W;$CGB=>+:<BR^CZR]7US<F_(XF5^-SF&J]M\T0TZ.\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ZU3.1"Z(OO$K$&96#"U4<CBM;'::?
MKQCK+_D,HUT^23YO&)TMLRE*,KJY+G,)RA2QA$B41*H_\COF)<2[OJ>ZS`N9
M*T=U#5'H-Y<QH78WC*/2JC9[@50URV^SQ..PQ&VC6>0<!H%5X:_]0:_RFZ6,
M=)WJ9-#.V<KQ";ZB;<#/L2[@*?0$EJGXW<=GF[JBM?QP'30[QT*TA014&:F5
MD-4@&D8/B`Q36)@M6\/OF@;!$.,E_<8*MD-4@&D8/B`Q36)@M6\/OF@;!$.,E_<8*I@8"PBJU;V`9YQ<(DH1%TYUQ7WJ'
MIAG/L:!Z%X69*2;!=R)_L(:S.*66$Z=Z"<0%<[9$J+NA(T+WZ)F0"]5/A;K.
M!MVS*G65[K*^P>M!MVS*G65[K*^P>F@W\YI#CNWC6/=O\VU*7-]--6D%.J=4N#`7:@NP9X!0X>B
M-F`!&VB=D<0FE>H#M-F`!&VB=D<0FE>H#T@M-F`!&VB=D<0FE>H#T@8@Q<(<09RU0](ORG(STN9VX*8X/1D?!JX35,KPJ-+D
M,]+UC_,Z(+M<>&SWN\UN%P(D/N@(B1?U7#8$DWH_ZJ)8-B\>*%9`W"@6"N^Y
M7U'5PELAW5*,UZF*K;KL[=R:,H@=I0S]M7U'5PELAW5*,UZF*K;KL[=R:,H@=I0S]Z@.,FKE#U*:_OHAD+&I3:L<\O*_K
MMQT53(W?+L4T1%8.ROA(MMQT53(W?+L4T1%8.ROA(WX@78(6A)*3>MG$W?$^,/WTROWWATA.8.R?,Q=WW
M%.(LN#?$!=?<8HQO(PQBV:7G*!O=(@2NIHI:4H9$YW^DECM5$U9LJ?<#+`U(
KYE,!4*/=;F)V,,]'-R-J*]3Y%7RC=-O&MET;6S<5Q4\&_PN=?KSTFRH`````
`
end
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:38 EST