[Unionfs] patch for a 2.6.23-11-unionfs-rt kernel?

Paul Hewlett paul at gccs.co.za
Tue Jan 29 03:43:28 EST 2008


Roman Muñoz wrote:
> Hi Paul
>
> I can not compile 2.6.23-11 with -rt applied, I get the same __nrpages
> error that I got with 2.6.23-1
>
> I see that the previous thread includes patches to solve this, but it
> seems that an all-cases patch was being worked on? If so, I am unable
> to find it. If not, I would to know which one would be the best to be
> applied to get a 2.6.23-11-unionfs-rt kernel compiled. No matter about
> the patch-applied-but-not-used and patch-not-applied cases.
>
> I renamed this post in order to make it more descriptive
>
> Best regards,
>
> Roman
Roman

There cannot be a generic patch that will apply to both RT and non-RT
kernels because there is no way of automatically detecting that access
to nrpages has changed.
There is 1 other  place where the unionfs patch had to be modified for
the RT kernel but this is covered by a suitable #ifdef CONFIG_PREEMPT_RT
statement.

The unionfs patch for 2.6.23-11 has a second reference to nrpages in the
function purge_inode_data() in dentry.c. Change this line to

if (mapping_nrpages(&inode->i_data))

This change has gone away in the unionfs patch for 2.6.23-14

Paul
>
> Paul Hewlett escribió:
>> Roman Muñoz wrote:
>>> Hi, is there any patch recommended to make unionfs work with -RT patch?
>>>
>>> I see a thread about it, but it is not very clear to me. I understand
>>> that is quite an inconvenience to have various posibilities -kernel
>>> witouth -RT, kernel with -RT but not activated, kernel with -RT patch
>>> applied and activated...
>>>
>>> I could live with it if there were a patch to unionfs capable to make
>>> it compile with RT patch applied-and-activated.
>>>
>>> Could you give me any poiter?
>>>
>>> Thanks,
>>>
>>> Roman
>> Hi Roman
>>
>> I have been using unionfs with the gentoo pro-audio overlay (which has
>> the RT kernel) for some time now and it works well.
>>
>> What exactly is unclear to you from the previous thread ?
>> Which kernel are you interested in ?
>>
>> Regards Paul
>>
>>
>>
>
>
> _______________________________________________
> unionfs mailing list: http://unionfs.filesystems.org/
> unionfs at mail.fsl.cs.sunysb.edu
> http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs
>


-- 
Technical Director, GCCS
Tel: 086 111 3433 Fax: 086 111 3520 Cel: 076 072 7906
web: http://www.gccs.co.za



More information about the unionfs mailing list