| To: | xfs@xxxxxxxxxxx, dean.roehrich@xxxxxxx |
|---|---|
| Subject: | Re:Re: Delivered state of DMAPI Event |
| From: | "Michael Li (gmail)" <mikore.li@xxxxxxxxx> |
| Date: | Fri, 14 Jul 2006 01:35:56 +0800 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=jXu7eslVatntspmav5fM88vVWsyiYwN0Ayt9/9Iv5Zob91ojroLWruZCkV8PgxQV1zSkXMhcFvjg9InAyXgIDEmmp14ny8cs7dooHGy4mOaJI3hOJlfiwuF1Fer+TZIlLFHf0oZsPNQn0gb3pQE5wvn8UEgQcRN4r7gNz2xsias= |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
Dean: It is a perfect answer for my questions, more than I have expected. However, we met a strange thing for our DM application: Our simple DM application running on Linux/XFS. Its task is to monitor the file read event. In the experience: 1.start the DM application. 2.set READ region for a file. 3.kill the DM application. 4.read that file. Then the system will hang, umount the xfs partition will fail too. In above exercise, after the DM app is killed, no thread will take the role doing dm_get_event(). So that the read event will not be in delivered state. But it does hang our read process. What's that, is there other issue result to this, like bad mount option... token related? Thanks, Michael
This is sitting on sn_newq. > 2) delivered and awaiting a response from the DM application. This is sitting on sn_delq. > The 2nd state also know as outstanding state for synchronous event > message. I'd like to know the exact meaning of "delivered", > Does "delivered" means the DM application had call dm_get_event() on the > event? Yes, delivered means the HSM has retrieved it with dm_get_events(). This is the only place you should see a dm_unlink_event(sn_newq) and a matching dm_link_event(sn_delq). It doesn't go onto sn_delq unless it's a sync event, as determined by looking at the ev_token field and you can see that's set in dm_enqueue() only for sync events.
The "user" event, DM_EVENT_USER. Ug. This is how an HSM can drop a marker directly into the "delivered" queue. A user event never enters sn_newq. I supposed an HSM would have multiple sessions, and would be moving events around between sessions for something...er other. Don't ask me how this event is used. Of course, dm_move_event() can pull an event off one session's delq and add it to another session's delq. Dean |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: sparse (was Re: [PATCH] xfs: fix brown paperbag quota-aware stafs bug), Christoph Hellwig |
|---|---|
| Next by Date: | XFS bmap to disk lba question., Michael Li (gmail) |
| Previous by Thread: | Re: Delivered state of DMAPI Event, Dean Roehrich |
| Next by Thread: | Re: Re: Delivered state of DMAPI Event, Dean Roehrich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |