public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question: The use of s_op->write_super_lockfs/unlockfs
@ 2002-06-14  3:55 OHKUBO Katsuhiko
  2002-06-14  6:49 ` Andreas Dilger
  0 siblings, 1 reply; 2+ messages in thread
From: OHKUBO Katsuhiko @ 2002-06-14  3:55 UTC (permalink / raw)
  To: linux-kernel


Hello.

There ars
	void write_super_lockfs(super_block *)
	void unlockfs(super_block *)
in struct super_operations.

Ext3 and reiserfs have implementations of it.
But I cannot find callers of it and system calls for it.

There are some pathches such as 
	http://www.lifix.fi/listarchive/lkml/2001-08/msg00464.html
but it's not included in Linux 2.4.18/2.5.21.
	drivers/md/lvm.c has only callers of functions in this patch
	if defined LVM_VFS_ENHANCEMENT, but there aren't function bodys.

Q1: Who does use s_op->write_super_lockfs/unlockfs now?
Q2: How lockfs/unlockfs will be used in future?
Q3: Is it enable to implement of system calls for lockfs/unlockfs
	without deadlocks?

Thanks in advance.

-----------
OHKUBO Katsuhiko ohkubo-k@suri.co.jp


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question: The use of s_op->write_super_lockfs/unlockfs
  2002-06-14  3:55 question: The use of s_op->write_super_lockfs/unlockfs OHKUBO Katsuhiko
@ 2002-06-14  6:49 ` Andreas Dilger
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2002-06-14  6:49 UTC (permalink / raw)
  To: OHKUBO Katsuhiko; +Cc: linux-kernel

On Jun 14, 2002  12:55 +0900, OHKUBO Katsuhiko wrote:
> There ars
> 	void write_super_lockfs(super_block *)
> 	void unlockfs(super_block *)
> in struct super_operations.
> 
> Ext3 and reiserfs have implementations of it.
> But I cannot find callers of it and system calls for it.
> 
> There are some pathches such as 
> 	http://www.lifix.fi/listarchive/lkml/2001-08/msg00464.html
> but it's not included in Linux 2.4.18/2.5.21.
> 	drivers/md/lvm.c has only callers of functions in this patch
> 	if defined LVM_VFS_ENHANCEMENT, but there aren't function bodys.
> 
> Q1: Who does use s_op->write_super_lockfs/unlockfs now?

LVM and EVMS use this interface, but it has not been accepted into the
kernel yet.  I think Chris Mason wants to submit the patch to implement
this, but has not yet.  I believe the 2.4.18 patch needs changing for
both 2.4.20 and 2.5.x.

> Q3: Is it enable to implement of system calls for lockfs/unlockfs
> 	without deadlocks?

No, because there is no guarantee that the user process will ever
call unlockfs (it could die or something).  I _suppose_ it would
be possible to call an ioctl to do the lockfs, and if the process dies
before calling unlockfs the close() will also do the unlockfs.  It
could still deadlock on I/O to the locked device and never terminate,
and it would be unkillable from user-space (stuck in "D" state).

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-14  6:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-14  3:55 question: The use of s_op->write_super_lockfs/unlockfs OHKUBO Katsuhiko
2002-06-14  6:49 ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox