* linux-next: manual merge of the vfs-brauner tree with the cifs tree
@ 2024-09-05 22:46 Stephen Rothwell
2024-09-05 23:38 ` Stephen Rothwell
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2024-09-05 22:46 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: CIFS, David Howells, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
Hi all,
Today's linux-next merge of the vfs-brauner tree got a conflict in:
fs/smb/client/cifssmb.c
between commit:
a68c74865f51 ("cifs: Fix SMB1 readv/writev callback in the same way as SMB2/3")
from the cifs tree and commit:
0fda1f8c6bf8 ("netfs: Speed up buffered reading")
from the vfs-brauner tree.
I fixed it up (I used the former as it is (supposedly) a much newer patch)
and can carry the fix as necessary. This is now fixed as far as linux-next
is concerned, but any non trivial conflicts should be mentioned to your
upstream maintainer when your tree is submitted for merging. You may
also want to consider cooperating with the maintainer of the conflicting
tree to minimise any particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: linux-next: manual merge of the vfs-brauner tree with the cifs tree
2024-09-05 22:46 linux-next: manual merge of the vfs-brauner tree with the cifs tree Stephen Rothwell
@ 2024-09-05 23:38 ` Stephen Rothwell
2024-09-06 1:48 ` Stephen Rothwell
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2024-09-05 23:38 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: CIFS, David Howells, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]
Hi all,
On Fri, 6 Sep 2024 08:46:37 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the vfs-brauner tree got a conflict in:
>
> fs/smb/client/cifssmb.c
>
> between commit:
>
> a68c74865f51 ("cifs: Fix SMB1 readv/writev callback in the same way as SMB2/3")
>
> from the cifs tree and commit:
>
> 0fda1f8c6bf8 ("netfs: Speed up buffered reading")
>
> from the vfs-brauner tree.
>
> I fixed it up (I used the former as it is (supposedly) a much newer patch)
> and can carry the fix as necessary. This is now fixed as far as linux-next
> is concerned, but any non trivial conflicts should be mentioned to your
> upstream maintainer when your tree is submitted for merging. You may
> also want to consider cooperating with the maintainer of the conflicting
> tree to minimise any particularly complex conflicts.
The fixup ended up being as below.
--
Cheers,
Stephen Rothwell
diff --cc fs/smb/client/cifssmb.c
index cfae2e918209,04f2a5441a89..790b3f5ea64b
--- a/fs/smb/client/cifssmb.c
+++ b/fs/smb/client/cifssmb.c
@@@ -1261,16 -1261,6 +1261,15 @@@ openRetry
return rc;
}
+static void cifs_readv_worker(struct work_struct *work)
+{
+ struct cifs_io_subrequest *rdata =
+ container_of(work, struct cifs_io_subrequest, subreq.work);
+
- netfs_subreq_terminated(&rdata->subreq,
- (rdata->result == 0 || rdata->result == -EAGAIN) ?
- rdata->got_bytes : rdata->result, true);
++ rdata->subreq.transferred += rdata->got_bytes;
++ netfs_read_subreq_terminated(&rdata->subreq, rdata->result, true);
+}
+
static void
cifs_readv_callback(struct mid_q_entry *mid)
{
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: linux-next: manual merge of the vfs-brauner tree with the cifs tree
2024-09-05 23:38 ` Stephen Rothwell
@ 2024-09-06 1:48 ` Stephen Rothwell
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Rothwell @ 2024-09-06 1:48 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: CIFS, David Howells, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 3129 bytes --]
Hi all,
On Fri, 6 Sep 2024 09:38:21 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Fri, 6 Sep 2024 08:46:37 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > Today's linux-next merge of the vfs-brauner tree got a conflict in:
> >
> > fs/smb/client/cifssmb.c
> >
> > between commit:
> >
> > a68c74865f51 ("cifs: Fix SMB1 readv/writev callback in the same way as SMB2/3")
> >
> > from the cifs tree and commit:
> >
> > 0fda1f8c6bf8 ("netfs: Speed up buffered reading")
> >
> > from the vfs-brauner tree.
> >
> > I fixed it up (I used the former as it is (supposedly) a much newer patch)
> > and can carry the fix as necessary. This is now fixed as far as linux-next
> > is concerned, but any non trivial conflicts should be mentioned to your
> > upstream maintainer when your tree is submitted for merging. You may
> > also want to consider cooperating with the maintainer of the conflicting
> > tree to minimise any particularly complex conflicts.
>
> The fixup ended up being as below.
>
> --
> Cheers,
> Stephen Rothwell
>
> diff --cc fs/smb/client/cifssmb.c
> index cfae2e918209,04f2a5441a89..790b3f5ea64b
> --- a/fs/smb/client/cifssmb.c
> +++ b/fs/smb/client/cifssmb.c
> @@@ -1261,16 -1261,6 +1261,15 @@@ openRetry
> return rc;
> }
>
> +static void cifs_readv_worker(struct work_struct *work)
> +{
> + struct cifs_io_subrequest *rdata =
> + container_of(work, struct cifs_io_subrequest, subreq.work);
> +
> - netfs_subreq_terminated(&rdata->subreq,
> - (rdata->result == 0 || rdata->result == -EAGAIN) ?
> - rdata->got_bytes : rdata->result, true);
> ++ rdata->subreq.transferred += rdata->got_bytes;
> ++ netfs_read_subreq_terminated(&rdata->subreq, rdata->result, true);
> +}
> +
> static void
> cifs_readv_callback(struct mid_q_entry *mid)
> {
Also this (which I will roll into the above merge resolution tomorrow):
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 6 Sep 2024 11:39:25 +1000
Subject: [PATCH] fix up for "netfs: Speed up buffered reading"
interacting with "cifs: Fix SMB1 readv/writev callback in the same way
as SMB2/3"
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
fs/smb/client/cifssmb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/smb/client/cifssmb.c b/fs/smb/client/cifssmb.c
index 790b3f5ea64b..76fb2287c17b 100644
--- a/fs/smb/client/cifssmb.c
+++ b/fs/smb/client/cifssmb.c
@@ -1326,9 +1326,9 @@ cifs_readv_callback(struct mid_q_entry *mid)
__set_bit(NETFS_SREQ_HIT_EOF, &rdata->subreq.flags);
rdata->result = 0;
} else {
- if (rdata->got_bytes < rdata->actual_len &&
- rdata->subreq.start + rdata->subreq.transferred + rdata->got_bytes ==
- ictx->remote_i_size) {
+ size_t trans = rdata->subreq.transferred + rdata->got_bytes;
+ if (trans < rdata->subreq.len &&
+ rdata->subreq.start + trans == ictx->remote_i_size) {
__set_bit(NETFS_SREQ_HIT_EOF, &rdata->subreq.flags);
rdata->result = 0;
}
--
2.45.2
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* linux-next: manual merge of the vfs-brauner tree with the cifs tree
@ 2024-09-12 22:59 Stephen Rothwell
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Rothwell @ 2024-09-12 22:59 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: David Howells, CIFS, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
Hi all,
Today's linux-next merge of the vfs-brauner tree got a conflict in:
fs/smb/client/cifsencrypt.c
between commit:
192bbbf2bd41 ("cifs: Fix signature miscalculation")
from the cifs tree and commits:
4aa571d67e81 ("cifs: Don't support ITER_XARRAY")
from the vfs-brauner tree.
I fixed it up (the latter removed the line update by the former, so I just
use latter version) and can carry the fix as necessary. This is now fixed
as far as linux-next is concerned, but any non trivial conflicts should
be mentioned to your upstream maintainer when your tree is submitted for
merging. You may also want to consider cooperating with the maintainer
of the conflicting tree to minimise any particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* linux-next: manual merge of the vfs-brauner tree with the cifs tree
@ 2024-09-06 1:18 Stephen Rothwell
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Rothwell @ 2024-09-06 1:18 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: David Howells, CIFS, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 715 bytes --]
Hi all,
Today's linux-next merge of the vfs-brauner tree got a conflict in:
fs/netfs/io.c
between commit:
ab8521891072 ("netfs, cifs: Improve some debugging bits")
from the cifs tree and commit:
550bc501ff91 ("netfs: Remove fs/netfs/io.c")
from the vfs-brauner tree.
I fixed it up (I removed the file) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging. You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* linux-next: manual merge of the vfs-brauner tree with the cifs tree
@ 2024-02-26 0:03 Stephen Rothwell
2024-03-12 4:00 ` Stephen Rothwell
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Rothwell @ 2024-02-26 0:03 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: David Howells, Jeff Layton, CIFS, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
Hi all,
Today's linux-next merge of the vfs-brauner tree got a conflict in:
fs/smb/client/file.c
between commit:
d7e87923939a ("cifs: Fix writeback data corruption")
from the cifs tree and commit:
a69ce85ec9af ("filelock: split common fields into struct file_lock_core")
from the vfs-brauner tree.
Please do not do unrelated white space cleanups ...
I fixed it up (I used the former version) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging. You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: linux-next: manual merge of the vfs-brauner tree with the cifs tree
2024-02-26 0:03 Stephen Rothwell
@ 2024-03-12 4:00 ` Stephen Rothwell
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Rothwell @ 2024-03-12 4:00 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: David Howells, Jeff Layton, CIFS, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]
Hi all,
On Mon, 26 Feb 2024 11:03:43 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the vfs-brauner tree got a conflict in:
>
> fs/smb/client/file.c
>
> between commit:
>
> d7e87923939a ("cifs: Fix writeback data corruption")
>
> from the cifs tree and commit:
>
> a69ce85ec9af ("filelock: split common fields into struct file_lock_core")
>
> from the vfs-brauner tree.
>
> Please do not do unrelated white space cleanups ...
>
> I fixed it up (I used the former version) and can carry the fix as
> necessary. This is now fixed as far as linux-next is concerned, but any
> non trivial conflicts should be mentioned to your upstream maintainer
> when your tree is submitted for merging. You may also want to consider
> cooperating with the maintainer of the conflicting tree to minimise any
> particularly complex conflicts.
This is now a conflict between the cifs tree and Linus' tree.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* linux-next: manual merge of the vfs-brauner tree with the cifs tree
@ 2024-02-07 22:59 Stephen Rothwell
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Rothwell @ 2024-02-07 22:59 UTC (permalink / raw)
To: Christian Brauner, Steve French
Cc: David Howells, Jeff Layton, CIFS, Linux Kernel Mailing List,
Linux Next Mailing List, Steve French
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
Hi all,
Today's linux-next merge of the vfs-brauner tree got a conflict in:
fs/smb/client/file.c
between commit:
ddcd663e2c76 ("cifs: Remove some code that's no longer used, part 2")
from the cifs tree and commit:
a69ce85ec9af ("filelock: split common fields into struct file_lock_core")
from the vfs-brauner tree.
I fixed it up (this was caused by a pure white space change in the
latter commit on a line that was removed in the former anyway, so I
just used the former) and can carry the fix as necessary. This is now
fixed as far as linux-next is concerned, but any non trivial conflicts
should be mentioned to your upstream maintainer when your tree is
submitted for merging. You may also want to consider cooperating with
the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-09-12 22:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 22:46 linux-next: manual merge of the vfs-brauner tree with the cifs tree Stephen Rothwell
2024-09-05 23:38 ` Stephen Rothwell
2024-09-06 1:48 ` Stephen Rothwell
-- strict thread matches above, loose matches on Subject: below --
2024-09-12 22:59 Stephen Rothwell
2024-09-06 1:18 Stephen Rothwell
2024-02-26 0:03 Stephen Rothwell
2024-03-12 4:00 ` Stephen Rothwell
2024-02-07 22:59 Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox