Skip to contentSkip to conversation

linux-next: manual merge of the aio tree with the vfs tree

DISCUSSION Stephen Rothwell 3 participants 6 messages Mar 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Ben,

Today's linux-next merge of the aio tree got a conflict in:

fs/namei.c

between commit:

5955102c9984 ("wrappers for ->i_mutex access")

from the vfs tree and commit:

5d3d80fcf992 ("aio: add support for in-submit openat")

from the aio tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 25 lines
Cheers,
Stephen Rothwell

diff --cc fs/namei.c
index 794f81dce766,260782f5a868..000000000000
--- a/fs/namei.c
+++ b/fs/namei.c
@@@ -3125,9 -3079,15 +3125,15 @@@ retry_lookup
  		 * dropping this one anyway.
  		 */
  	}
+ 
+ 	if (nd->flags & LOOKUP_NONBLOCK) {
+ 		error = -EAGAIN;
+ 		goto out;
+ 	}
+ 		
 -	mutex_lock(&dir->d_inode->i_mutex);
 +	inode_lock(dir->d_inode);
  	error = lookup_open(nd, &path, file, op, got_write, opened);
 -	mutex_unlock(&dir->d_inode->i_mutex);
 +	inode_unlock(dir->d_inode);
  
  	if (error <= 0) {
  		if (error)
maintainer
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi Ben,

Today's linux-next merge of the aio tree got a conflict in:

fs/namei.c

between commit:

Quoted 7 lines

5955102c9984 ("wrappers for ->i_mutex access")

from the vfs tree and commit:

5d3d80fcf992 ("aio: add support for in-submit openat")

from the aio tree.

What.

The.

Hell?

The first commit is in the mainline, not in vfs tree. And it had been there since before -rc1.

Incidentally, why the hell has that thing never landed in my mailbox? Not directly, not Cc'd, not via fsdevel either.

Ben, what the fuck going on? OK, you don't feel necessary to mention that to me (or have me take a look through it). Your business. You also don't bother to bring it on fsdevel. Again, your estimates of the usefulness of said list and review there are your business. But it looks like you also do not bother to check what has landed in the mainline two months ago. WTF?

#2 lore raw

Hi Al,

Quoted 7 lines · On Tue, 15 Mar 2016 04:34:48 +0000 Al Viro <[email protected]> wrote:
Quoted 6 lines

between commit:

5955102c9984 ("wrappers for ->i_mutex access")

from the vfs tree and commit:

Quoted 8 lines

What.

The.

Hell?

The first commit is in the mainline, not in vfs tree. And it had been there since before -rc1.

Sorry, my mistake.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#3 lore raw
In reply to Al Viro
Quoted 9 lines · Al Viro

Incidentally, why the hell has that thing never landed in my mailbox? Not directly, not Cc'd, not via fsdevel either.

Ben, what the fuck going on? OK, you don't feel necessary to mention that to me (or have me take a look through it). Your business. You also don't bother to bring it on fsdevel. Again, your estimates of the usefulness of said list and review there are your business. But it looks like you also do not bother to check what has landed in the mainline two months ago. WTF?

While we are at it, aio.git commit in question is crap anyway. What is the semantics of that LOOKUP_NONBLOCK thing and what makes you think that it will *not* block prior to reaching do_last()? LOOKUP_RCU that was originally there? Sorry, wrong. RCU pathwalk will happily fall back to non-RCU one if it can do so without restart from scratch. And proceed to lock directories, hit the disk over nbd over wet string, do automounts, etc. Anything and everything. IOW, this is complete BS and had been such for at least ~5 years.

There *is* a reason for code review. Or, at least, asking somebody familiar with the code you are working with whether some assumption you are making is true or false. Me, for example, in our conversation regarding earlier parts of aio.git queue about a week ago. Or at any other point.

Al "Really annoyed" Viro

maintainer
#4 lore raw
Quoted 4 lines · Al Viro

There *is* a reason for code review. Or, at least, asking somebody familiar with the code you are working with whether some assumption you are making is true or false. Me, for example, in our conversation regarding earlier parts of aio.git queue about a week ago. Or at any other point.

While we are at it, 150a0b49 ("aio: add support for async openat()") is also crap. fs_struct and files_struct is nowhere near enough. And yes, I realize that your application probably doesn't step into it. Which means that these patches are just fine for your private kernel. _Not_ for mainline.

Reviewed-and-NAKed-by Al Viro <[email protected]>
#5 lore raw
Quoted 7 lines · Al Viro
Quoted 4 lines · Al Viro

There *is* a reason for code review. Or, at least, asking somebody familiar with the code you are working with whether some assumption you are making is true or false. Me, for example, in our conversation regarding earlier parts of aio.git queue about a week ago. Or at any other point.

Quoted 6 lines

While we are at it, 150a0b49 ("aio: add support for async openat()") is also crap. fs_struct and files_struct is nowhere near enough. And yes, I realize that your application probably doesn't step into it. Which means that these patches are just fine for your private kernel. _Not_ for mainline.

Reviewed-and-NAKed-by Al Viro <[email protected]>

You've had two months to make this comment, so I'm glad you've finally done so.

-ben

Signature · 1 line
"Thought is the essence of where you are now."