[pso] pso Digest, Vol 29, Issue 10

Stefan Cristian cristinutu122 at yahoo.fr
Thu Jul 31 13:33:57 EEST 2008


Bun. Pot in cazul asta sa aloc memorie pentru  o structura work_struct in functia  bio_handler, o initializez si o schedulez. Sper ca nu este o intrebare prosteasca dar cine se ocupa de eliberarea memoriei pentru structura asta dupa ce este folosita? (nu imi este clar)

Mersi,
Stefan Cristian

----- Original Message ----
From: "pso-request at cursuri.cs.pub.ro" <pso-request at cursuri.cs.pub.ro>
To: pso at cursuri.cs.pub.ro
Sent: Thursday, July 31, 2008 12:00:06 PM
Subject: pso Digest, Vol 29, Issue 10

Send pso mailing list submissions to
    pso at cursuri.cs.pub.ro

To subscribe or unsubscribe via the World Wide Web, visit
    http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
or, via email, send a message with subject or body 'help' to
    pso-request at cursuri.cs.pub.ro

You can reach the person managing the list at
    pso-owner at cursuri.cs.pub.ro

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pso digest..."


Today's Topics:

   1. Tema3: Despre sincronizare (Stefan Cristian)
   2. Re: Tema3: Despre sincronizare (Razvan Deaconescu)


----------------------------------------------------------------------

Message: 1
Date: Wed, 30 Jul 2008 13:47:24 +0000 (GMT)
From: Stefan Cristian <cristinutu122 at yahoo.fr>
Subject: [pso] Tema3: Despre sincronizare
To: pso at cursuri.cs.pub.ro
Message-ID: <645831.37223.qm at web25504.mail.ukl.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Salut

Am inregistrat o rutina de tratare a cererilor la nivel de  bio cu "blk_queue_make_request" (se numeste "bio_handler").  Aici am facut un singur apel la functia schedule_work(). Iar in handlerul asociat workqueue-ului vreau sa fac tot ce tine de prelucrarea bio-urilor si apelez la sfarsit bio_endio. E bun algoritmul? Trebuie sa mai fac sincronizari suplimentare cu functia bio_handler? 
Eu pasez bio-ul prin intermediul unei variabile globale pe care o setez in functia bio_handler si nu vreau sa isi modifice valoarea in timpul procesarii.

Mersi
Stefan Cristian


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080730/a9cd842f/attachment.htm 

------------------------------

Message: 2
Date: Wed, 30 Jul 2008 20:56:03 +0300
From: Razvan Deaconescu <razvan.deaconescu at cs.pub.ro>
Subject: Re: [pso] Tema3: Despre sincronizare
To: Proiectarea Sistemelor de Operare <pso at cursuri.cs.pub.ro>
Message-ID: <1217440563.8505.48.camel at valhalla.cs.pub.ro>
Content-Type: text/plain

On Wed, 2008-07-30 at 13:47 +0000, Stefan Cristian wrote:
> Salut
> 
> Am inregistrat o rutina de tratare a cererilor la nivel de  bio cu
> "blk_queue_make_request" (se numeste "bio_handler").  Aici am facut un
> singur apel la functia schedule_work(). Iar in handlerul asociat
> workqueue-ului vreau sa fac tot ce tine de prelucrarea bio-urilor si
> apelez la sfarsit bio_endio. E bun algoritmul? Trebuie sa mai fac
> sincronizari suplimentare cu functia bio_handler? 
> Eu pasez bio-ul prin intermediul unei variabile globale pe care o
> setez in functia bio_handler si nu vreau sa isi modifice valoarea in
> timpul procesarii.

Nu e OK sa mentii o variabila globala in care sa stochezi bio. Daca vine
o alta cerere ti-o va suprascrie. De ce nu o transmiti ca argument in
work_struct?

Razvan



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



------------------------------

_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso


End of pso Digest, Vol 29, Issue 10
***********************************



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080731/fc582d57/attachment.htm 


More information about the pso mailing list