Re: [GIT PULL] ksmbd server fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 28, 2022 at 6:39 PM Steve French <smfrench@xxxxxxxxx> wrote:
>
> - four patches relating to dentry race

I took a look at this, and I absolutely hate it.

You are basically exporting vfs-internal functions (__lookup_hash() in
particular) that really shouldn't be exported.

And the _reason_ you are exporting them seems to be that you have
copied most of do_renameat2() as ksmbd_vfs_rename() but then made
various small changes.

This all makes me _very_ uncomfortable.

I really get the feeling that we'd be much better off exporting
something that is just a bigger part of that rename logic, not that
really low-level __lookup_hash() thing.


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux