Skip to contentSkip to conversation

md - 2 of 3 - Add BLKSSZGET ioctl for md driver

PATCH In review NeilBrown 2 participants 5 messages Jun 18, 2003 – Jun 19, 2003

Subsystems (4)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 md - 2 of 3 - Add BLKSSZGET ioctl for md driver

### Comments for ChangeSet

From: Nathan Scott <[email protected]>

----------- Diffstat output ------------

 ./drivers/md/md.c |    1 +
 1 files changed, 1 insertion(+)
drivers/md/md.c renamed from drivers/md/md.c~current~ +1 -0
diff ./drivers/md/md.c~current~ ./drivers/md/md.c
@@ -2623,6 +2623,7 @@ static int md_ioctl(struct inode *inode,
 		case BLKRAGET:
 		case BLKRASET:
 		case BLKFLSBUF:
+		case BLKSSZGET:
 		case BLKBSZGET:
 		case BLKBSZSET:
 			err = blk_ioctl (dev, cmd, arg);
#1 lore raw

Neil,

This one doesnt apply cleanly against my tree.

Quoted 21 lines · NeilBrown

### Comments for ChangeSet

From: Nathan Scott <[email protected]>

----------- Diffstat output ------------

 ./drivers/md/md.c |    1 +
 1 files changed, 1 insertion(+)

diff ./drivers/md/md.c~current~ ./drivers/md/md.c

drivers/md/md.c renamed from drivers/md/md.c~current~ +1 -0
@@ -2623,6 +2623,7 @@ static int md_ioctl(struct inode *inode,
 		case BLKRAGET:
 		case BLKRASET:
 		case BLKFLSBUF:
+		case BLKSSZGET:
 		case BLKBSZGET:
 		case BLKBSZSET:
 			err = blk_ioctl (dev, cmd, arg);
#3 lore raw
In reply to Neil Brown

Ok, I just pusheed your stuff to bkbits.net.

Quoted 13 lines · Neil Brown
Quoted 4 lines · On Wednesday June 18, [email protected] wrote:

Neil,

This one doesnt apply cleanly against my tree.

Odd... I did a "bk pull" and created the three patches against that. I'll wait for bkbit.net to get up-to-date with you again and have a look.

Thanks,
NeilBrown

author
#2 lore raw
In reply to Marcelo Tosatti
Quoted 4 lines · On Wednesday June 18, [email protected] wrote:

Neil,

This one doesnt apply cleanly against my tree.

Odd... I did a "bk pull" and created the three patches against that. I'll wait for bkbit.net to get up-to-date with you again and have a look.

Thanks,
NeilBrown

author
#4 lore raw
In reply to Marcelo Tosatti
Quoted 3 lines · On Wednesday June 18, [email protected] wrote:

Ok, I just pusheed your stuff to bkbits.net.

Thanks.
It seems that patch is now in there. Maybe I sent it twice by mistake.

The only missing bit is the following which I sent as a followup to on of the NFS patches.
Thanks,
NeilBrown

net/sunrpc/svcsock.c renamed from net/sunrpc/svcsock.c~current~ +2 -2
diff ./net/sunrpc/svcsock.c~current~ ./net/sunrpc/svcsock.c
@@ -826,7 +826,7 @@ svc_tcp_recvfrom(struct svc_rqst *rqstp)
 			goto error;
 		svsk->sk_tcplen += len;
 		if (len < want) {
-			dprintk("svc: short recvfrom while reading record length (%d of %d)\n",
+			dprintk("svc: short recvfrom while reading record length (%d of %ld)\n",
 			        len, want);
 			svc_sock_received(svsk);
 			return -EAGAIN; /* record header not complete */
@@ -973,7 +973,7 @@ svc_tcp_init(struct svc_sock *svsk)
 				    3 * svsk->sk_server->sv_bufsz);
 
 		set_bit(SK_CHNGBUF, &svsk->sk_flags);
-		if (sk->sk_state != TCP_ESTABLISHED) 
+		if (sk->state != TCP_ESTABLISHED) 
 			set_bit(SK_CLOSE, &svsk->sk_flags);
 	}