xfs
[Top] [All Lists]

Re: XFS module problems -- usage count incorrect

To: Harrison Xing <harrison@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: XFS module problems -- usage count incorrect
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jun 2001 20:00:44 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Fri, 15 Jun 2001 15:26:40 +0800." <Pine.LNX.4.30.0106151523230.1337-100000@harris.cn.mvd>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Fri, 15 Jun 2001 15:26:40 +0800 (CST), 
Harrison Xing <harrison@xxxxxxxxxxxxxxxxxxxx> wrote:
>       I use the XFS kernel tree of June 14. When I compile XFS and pagebuf
>as a module. After I just run "modprobe xfs", the usage count of XFS is 1 and I
>can't rmmod it. The following is the results of lsmod:
>
>lsmod:
>Module                  Size  Used by
>xfs                   597542   1
>pagebuf                33636   0  [xfs]
>xfs_support            15272   0  [xfs]
>
>       Anyone know what's the problem? Thanks.

init_xfs_fs() calls dmapi_init() which does MOD_INC_USE_COUNT.  Compile
XFS without DMAPI support and your problem will disappear.

The module related code in dmapi is a hangover from a time when dmapi
was a module in its own right instead of being linked into xfs.o.  I
will remove module related code from dmapi, I will also review grio, to
make sure it does not have the same problem.


<Prev in Thread] Current Thread [Next in Thread>