how stop sync on last close of removable medium?
- From: "Peter T. Breuer" <ptb@xxxxxxxxxxxxxx>
- Date: Sat, 30 Sep 2006 05:15:34 +0200 (MET DST)
blkdev_close calls blkdev_put, which does a sync if we were the last
opener of the device and are now closing:
if (!--bdev->bd_openers) {
sync_blockdev(bdev);
kill_bdev(bdev);
}
This is bad news for nbd-like devices which use a client daemon
to transfer data out of the device. If there are requests pending
when the daemon is killed off (hey, we may want to shut down!)
then the sync in the daemon's close of its device creates a deadlock.
The sync will not complete until the daemon sends pending
requests which it will not do since it is closing due to death.
Is there a mechanism to prevent this sync occuring? Say for
removable devices?
(I don't see it, due to blindness and mental density ... I could change
blkdev_close in inode->i_fops, I suppose, but that is attached to an
inode, presumably of our special device node in the fs above, and by the
time I get to it we have already opened the device node and it seems
that changing the release method then doesn't actually do anything.
Shrug).
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: Re: [PATCH 6/6]: powerpc/cell spidernet refine locking
- Next by Date: Re: SATA status reports update
- Previous by thread: overnice Girls doing dear blowjjob!
- Next by thread: overnice Just Schoolgirls and choice Cuties from Your dreamm!
- Index(es):
Relevant Pages
- Re: Syncing entourage calendar with iCal and Nokia phone for 2007
... I can't find any preferences in iSync to specify what you want to sync ... various
Entourage categories. ... Is the Entourage Database Daemon turned on? ...
Diane Ross, Microsoft Mac MVP ... (microsoft.public.mac.office.entourage) - Re: Sync Services still not working with 12.0.1 update
... Entourage daemon has created even if the daemon is not launched, ... Microsoft
Sync daemon never launches, there's no way for Entourage to sync ... (microsoft.public.mac.office.entourage) - Re: Cant Import form Now Contact
... Entourage 2004 will both create a daemon and cause problems. ... probably
the conduit used by NUD to sync. ... the app reports 'An unknown error occurred.'
... (microsoft.public.mac.office.entourage) - Re: Syncing entourage calendar with iCal and Nokia phone for 2007
... The menu item under "Entourage" shows ... Is the Entourage Database Daemon
turned on? ... If the Microsoft Sync daemon never launches, ... Diane Ross, Microsoft
Mac MVP ... (microsoft.public.mac.office.entourage) - Re: Cant Import form Now Contact
... Entourage 2004 will both create a daemon and cause problems. ... probably
the conduit used by NUD to sync. ... the app reports 'An unknown error occurred.'
... (microsoft.public.mac.office.entourage)