Skip to contentSkip to conversation

linux-next: Fixes tag needs some work in the block tree

DISCUSSION Stephen Rothwell 4 participants 8 messages Jun 26, 2020 – Jun 28, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

In commit

cd664b0e35cb ("io_uring: fix hanging iopoll in case of -EAGAIN")

Fixes tag

Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Please do not split Fixes tags over more than one line.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi all,

In commit

cd664b0e35cb ("io_uring: fix hanging iopoll in case of -EAGAIN")

Fixes tag

Quoted 8 lines
Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Please do not split Fixes tags over more than one line.

Gah, that's b4 messing it up. I've actually seen this before, but I caught it. If you look at the actual commit, this is what the b4 output ends up being for the fixes line:

[snip]
io_kiocb's result and iopoll_completed")

Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

even though it's correct in the email. I'm guessing some issue having to do with the longer line?

CC Konstantin.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 22 lines · Jens Axboe
Quoted 8 lines · Stephen Rothwell

Hi all,

In commit

cd664b0e35cb ("io_uring: fix hanging iopoll in case of -EAGAIN")

Fixes tag

Quoted 8 lines
Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Please do not split Fixes tags over more than one line.

Gah, that's b4 messing it up. I've actually seen this before, but I caught it. If you look at the actual commit, this is what the b4 output ends up being for the fixes line:

Quoted 7 lines

[snip]
io_kiocb's result and iopoll_completed")

Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

even though it's correct in the email. I'm guessing some issue having to do with the longer line?

Yeah, I'll try to see if there's something I can do here, but it's going to be largely guesswork. Here's the original email:

https://lore.kernel.org/lkml/22111b29e298f5f606130fcf4307bda99dbec089.1593077359.git.asml.silence@gmail.com/raw

The Fixes: footer really does get split into two. It's not that hard to add logic just for the Fixes tag (since it conveniently follows a set pattern), but finding a universal fix for split footers will be more difficult.

I'll see what I can do.

-K

#3 lore raw
Quoted 34 lines · Konstantin Ryabitsev
Quoted 22 lines · Jens Axboe
Quoted 8 lines · Stephen Rothwell

Hi all,

In commit

cd664b0e35cb ("io_uring: fix hanging iopoll in case of -EAGAIN")

Fixes tag

Quoted 8 lines
Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Please do not split Fixes tags over more than one line.

Gah, that's b4 messing it up. I've actually seen this before, but I caught it. If you look at the actual commit, this is what the b4 output ends up being for the fixes line:

Quoted 7 lines

[snip]
io_kiocb's result and iopoll_completed")

Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

even though it's correct in the email. I'm guessing some issue having to do with the longer line?

Yeah, I'll try to see if there's something I can do here, but it's going to be largely guesswork. Here's the original email:

Quoted 6 lines

https://lore.kernel.org/lkml/22111b29e298f5f606130fcf4307bda99dbec089.1593077359.git.asml.silence@gmail.com/raw

The Fixes: footer really does get split into two. It's not that hard to add logic just for the Fixes tag (since it conveniently follows a set pattern), but finding a universal fix for split footers will be more difficult.

Right, but that's what git format-patch does when the line is long. Do we have other tags where that's a concern? If not, then the fix should be solid I think.

Quoted 1 line

I'll see what I can do.

Thanks!

Signature · 1 line
Jens Axboe
#6 lore raw
In reply to Konstantin Ryabitsev

Hi Konstantin,

Quoted 35 lines · On Fri, 26 Jun 2020 21:56:05 -0400 Konstantin Ryabitsev…
Quoted 22 lines · Jens Axboe
Quoted 8 lines · Stephen Rothwell

Hi all,

In commit

cd664b0e35cb ("io_uring: fix hanging iopoll in case of -EAGAIN")

Fixes tag

Quoted 8 lines
Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Please do not split Fixes tags over more than one line.

Gah, that's b4 messing it up. I've actually seen this before, but I caught it. If you look at the actual commit, this is what the b4 output ends up being for the fixes line:

Quoted 7 lines

[snip]
io_kiocb's result and iopoll_completed")

Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

even though it's correct in the email. I'm guessing some issue having to do with the longer line?

Yeah, I'll try to see if there's something I can do here, but it's going to be largely guesswork. Here's the original email:

Quoted 8 lines

https://lore.kernel.org/lkml/22111b29e298f5f606130fcf4307bda99dbec089.1593077359.git.asml.silence@gmail.com/raw

The Fixes: footer really does get split into two. It's not that hard to add logic just for the Fixes tag (since it conveniently follows a set pattern), but finding a universal fix for split footers will be more difficult.

I'll see what I can do.

But (what am I missing?) the Fixes: tag has been split over 2 lines in the original message ... on lore and my copy. There is nothing for b4 to do here, the author needs to do this right.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
In reply to Jens Axboe

Hi Jens,

Quoted 2 lines · On Fri, 26 Jun 2020 20:25:31 -0600 Jens Axboe <[email protected]> wrote:

Right, but that's what git format-patch does when the line is long.

I just tested, and "git format-patch" (for me) does *not* split those lines.

Signature · 2 lines
Cheers,
Stephen Rothwell
#7 lore raw
In reply to Stephen Rothwell
Quoted 45 lines · Stephen Rothwell

Hi Konstantin,

Quoted 42 lines · On Fri, 26 Jun 2020 21:56:05 -0400 Konstantin Ryabitsev…
Quoted 22 lines · Jens Axboe
Quoted 8 lines · Stephen Rothwell

Hi all,

In commit

cd664b0e35cb ("io_uring: fix hanging iopoll in case of -EAGAIN")

Fixes tag

Quoted 8 lines
Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Please do not split Fixes tags over more than one line.

Gah, that's b4 messing it up. I've actually seen this before, but I caught it. If you look at the actual commit, this is what the b4 output ends up being for the fixes line:

Quoted 7 lines

[snip]
io_kiocb's result and iopoll_completed")

Fixes bbde017a32b3 ("io_uring: add memory barrier to synchronize

even though it's correct in the email. I'm guessing some issue having to do with the longer line?

Yeah, I'll try to see if there's something I can do here, but it's going to be largely guesswork. Here's the original email:

https://lore.kernel.org/lkml/22111b29e298f5f606130fcf4307bda99dbec089.1593077359.git.asml.silence@gmail.com/raw

The Fixes: footer really does get split into two. It's not that hard to add logic just for the Fixes tag (since it conveniently follows a set pattern), but finding a universal fix for split footers will be more difficult.

Quoted 5 lines
Quoted 1 line

I'll see what I can do.

But (what am I missing?) the Fixes: tag has been split over 2 lines in the original message ... on lore and my copy. There is nothing for b4 to do here, the author needs to do this right.

Yes, it was split from the beginning. It's really a shame it can't handle multi-line tags, but well, I'll keep that in mind.

Though, it's curious how

```
Fixes ("line1
line2")
```

became

```
line2")

Fixes ("line1
```

And that's what the rest of the thread is about.

Signature · 1 line
Pavel Begunkov
#5 lore raw
In reply to Stephen Rothwell
Quoted 7 lines · Stephen Rothwell

Hi Jens,

Quoted 2 lines · On Fri, 26 Jun 2020 20:25:31 -0600 Jens Axboe <[email protected]> wrote:

Right, but that's what git format-patch does when the line is long.

I just tested, and "git format-patch" (for me) does *not* split those lines.

Huh, I could have sworn it's done that for me in the past, just like it splits the Subject: line into multiple lines as well (that I just did verify that it still does).

Signature · 1 line
Jens Axboe