Linux-Next discussions
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: "David S. Miller" <davem@davemloft.net>
Cc: linux-next@vger.kernel.org,
	Harvey Harrison <harvey.harrison@gmail.com>,
	Jeff Layton <jlayton@redhat.com>,
	Steve French <smfrench@gmail.com>,
	linux-cifs-client@lists.samba.org
Subject: Re: linux-next: manual merge of the cifs tree
Date: Wed, 19 Nov 2008 13:32:10 +1100	[thread overview]
Message-ID: <20081119133210.0cac4142.sfr@canb.auug.org.au> (raw)
In-Reply-To: <20081117134243.0d729c7a.sfr@canb.auug.org.au>

Hi Dave,

On Mon, 17 Nov 2008 13:42:43 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the cifs tree got a conflict in
> fs/cifs/connect.c between commit be859405487324ed548f1ba11dc949b8230ab991
> ("fs: replace NIPQUAD()") from the net tree and commit
> 14fbf50d695207754daeb96270b3027a3821121f ("cifs: reinstate sharing of SMB
> sessions sans races") from the cifs tree.

This conflict is now between Linus' tree and the net tree ...

I have fixed it up for today (see below) but assume you will fix it soon
in the net tree.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc fs/cifs/connect.c
index c7d3417,2df8e6d..0000000
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@@ -2221,44 -2078,43 +2221,44 @@@ cifs_mount(struct super_block *sb, stru
  	} else if (!rc) {
  		cFYI(1, ("Existing smb sess not found"));
  		pSesInfo = sesInfoAlloc();
 -		if (pSesInfo == NULL)
 +		if (pSesInfo == NULL) {
  			rc = -ENOMEM;
 -		else {
 -			pSesInfo->server = srvTcp;
 -			sprintf(pSesInfo->serverName, "%pI4",
 -				&sin_server.sin_addr.s_addr);
 -		}
 +			goto mount_fail_check;
 +		}
 +
 +		/* new SMB session uses our srvTcp ref */
 +		pSesInfo->server = srvTcp;
- 		sprintf(pSesInfo->serverName, "%u.%u.%u.%u",
- 			NIPQUAD(sin_server->sin_addr.s_addr));
++		sprintf(pSesInfo->serverName, "%pI4",
++			&sin_server->sin_addr.s_addr);
 +
 +		write_lock(&cifs_tcp_ses_lock);
 +		list_add(&pSesInfo->smb_ses_list, &srvTcp->smb_ses_list);
 +		write_unlock(&cifs_tcp_ses_lock);
 +
 +		/* volume_info.password freed at unmount */
 +		if (volume_info.password) {
 +			pSesInfo->password = volume_info.password;
 +			/* set to NULL to prevent freeing on exit */
 +			volume_info.password = NULL;
 +		}
 +		if (volume_info.username)
 +			strncpy(pSesInfo->userName, volume_info.username,
 +				MAX_USERNAME_SIZE);
 +		if (volume_info.domainname) {
 +			int len = strlen(volume_info.domainname);
 +			pSesInfo->domainName = kmalloc(len + 1, GFP_KERNEL);
 +			if (pSesInfo->domainName)
 +				strcpy(pSesInfo->domainName,
 +					volume_info.domainname);
 +		}
 +		pSesInfo->linux_uid = volume_info.linux_uid;
 +		pSesInfo->overrideSecFlg = volume_info.secFlg;
 +		down(&pSesInfo->sesSem);
  
 -		if (!rc) {
 -			/* volume_info.password freed at unmount */
 -			if (volume_info.password) {
 -				pSesInfo->password = volume_info.password;
 -				/* set to NULL to prevent freeing on exit */
 -				volume_info.password = NULL;
 -			}
 -			if (volume_info.username)
 -				strncpy(pSesInfo->userName,
 -					volume_info.username,
 -					MAX_USERNAME_SIZE);
 -			if (volume_info.domainname) {
 -				int len = strlen(volume_info.domainname);
 -				pSesInfo->domainName =
 -					kmalloc(len + 1, GFP_KERNEL);
 -				if (pSesInfo->domainName)
 -					strcpy(pSesInfo->domainName,
 -						volume_info.domainname);
 -			}
 -			pSesInfo->linux_uid = volume_info.linux_uid;
 -			pSesInfo->overrideSecFlg = volume_info.secFlg;
 -			down(&pSesInfo->sesSem);
 -			/* BB FIXME need to pass vol->secFlgs BB */
 -			rc = cifs_setup_session(xid, pSesInfo,
 -						cifs_sb->local_nls);
 -			up(&pSesInfo->sesSem);
 -			if (!rc)
 -				atomic_inc(&srvTcp->socketUseCount);
 -		}
 +		/* BB FIXME need to pass vol->secFlgs BB */
 +		rc = cifs_setup_session(xid, pSesInfo,
 +					cifs_sb->local_nls);
 +		up(&pSesInfo->sesSem);
  	}
  
  	/* search for existing tcon to this server share */

  reply	other threads:[~2008-11-19  2:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17  2:42 linux-next: manual merge of the cifs tree Stephen Rothwell
2008-11-19  2:32 ` Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-03  2:51 Stephen Rothwell
2008-12-03  3:40 ` Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081119133210.0cac4142.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=davem@davemloft.net \
    --cc=harvey.harrison@gmail.com \
    --cc=jlayton@redhat.com \
    --cc=linux-cifs-client@lists.samba.org \
    --cc=linux-next@vger.kernel.org \
    --cc=smfrench@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox