- kevent-fix-socket-notifications.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     kevent: fix socket notifications
has been removed from the -mm tree.  Its filename was
     kevent-fix-socket-notifications.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: kevent: fix socket notifications
From: Evgeniy Polyakov <johnpol@xxxxxxxxxxx>

Socket enqueue callback must increase reference counter for both backing inode
and file.

Signed-off-by: Evgeniy Polyakov <johnpol@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/kevent/kevent_socket.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -puN kernel/kevent/kevent_socket.c~kevent-fix-socket-notifications kernel/kevent/kevent_socket.c
--- a/kernel/kevent/kevent_socket.c~kevent-fix-socket-notifications
+++ a/kernel/kevent/kevent_socket.c
@@ -61,7 +61,6 @@ int kevent_socket_enqueue(struct kevent 
 	if (err)
 		goto err_out_dequeue;
 
-	sockfd_put(sock);
 	return err;
 
 err_out_dequeue:
@@ -77,9 +76,13 @@ err_out_exit:
 int kevent_socket_dequeue(struct kevent *k)
 {
 	struct inode *inode = k->st->origin;
+	struct socket *sock;
 
 	kevent_storage_dequeue(k->st, k);
+
+	sock = SOCKET_I(inode);
 	iput(inode);
+	sockfd_put(sock);
 
 	return 0;
 }
_

Patches currently in -mm which might be from johnpol@xxxxxxxxxxx are

kevent-v23-description.patch
kevent-v23-core-files.patch
kevent-v23-poll-select-notifications.patch
kevent-v23-socket-notifications.patch
kevent-v23-timer-notifications.patch
kevent-fix-socket-notifications.patch
kevent-remove-mmap-interface.patch
kevent_user_wait-retval-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux