[lustre-devel] [PATCH 09/24] lustre: don't use spare bits in iattr.ia_valid
NeilBrown
neilb at suse.com
Thu Jun 21 19:23:13 PDT 2018
On Thu, Jun 21 2018, NeilBrown wrote:
> On Thu, Jun 21 2018, James Simmons wrote:
>
>>> Using spare bits in iattr.ia_valid is not safe as the
>>> bits might get used for some other purpose without
>>> us noticing.
>>> lustre currently used 4 spare bit, but they are all
>>> defined in different places so this isn't immediately
>>> obvious.
>>>
>>> This patch brings all those bit definitions together
>>> and defined a new op_data field (op_xvalid) to hold
>>> the extra validity bits.
>>>
>>> It also replaces sa_valid in struct cl_setattr_io
>>> with sa_avalid and sa_xvalid. Changing the name is
>>> helpful as sa_valid already has another use within
>>> lustre.
>>>
>>> Signed-off-by: NeilBrown <neilb at suse.com>
>>
>> Nak: I see regressions with this patch.
>>
>> [12368.453655] Lustre: DEBUG MARKER: == sanity test 240: race between ldlm
>> enqueue and the connection RPC (no ASSERT) ===================== 21:
>> 16:30 (1529543790)
>> [12368.760832] BUG: Dentry
>> 000000002646a847{i=200004282000008,n=f237.sanity} still in use (1)
>> [unmount of lustre lustre]
>> [12368.773746] WARNING: CPU: 1 PID: 10861 at fs/dcache.c:1514
> ...
>> [12369.385564] Lustre: Unmounted lustre-client
>> [12369.393247] VFS: Busy inodes after unmount of lustre. Self-destruct in
>> 5 seconds. Have a nice day...
>>
>> When I remove this patch things go back to normal. This will not show up
>> if you do a ONLY="240" sh ./sanity.sh. You have to run the sanity.sh in
>> total to make this show up.
>>
>
> (clearly I read my email in the wrong order)
> Very odd. This suggests some sort of life-time-management problem
> with inodes, but the changes shouldn't affect that at all.
> I've gone back over the patch closely and cannot see anything wrong - it
> is really very simple: it just moves flag bits around.
>
> I haven't got as far as 240 yet as changes to kvmalloc have caused
> earlier problem (my VMs don't have much RAM). I'll see if I can
> coax it all the way to 240 and see what happens.
I've now tested all the way to the end and see no new failures.
Specifically test 200 passes.
Have you had it fail more than once? If it was only once, then maybe it
was some random occurrence not related to the patch. We clearly still
want to fix it if we can...
Thanks,
NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20180622/9e82110f/attachment.sig>
More information about the lustre-devel
mailing list