Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1159901

[PATCH -next 0/5] ipc: EIDRM/EINVAL returns & misc updates

From Davidlohr Bueso <dave@stgolabs.net>
Newsgroups linux.kernel
Subject [PATCH -next 0/5] ipc: EIDRM/EINVAL returns & misc updates
Date 2015-06-06 15:40 +0200
Message-ID <pymul-1tT-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

Patches 1,2: Are a resend, I've incorporated them to the set,
based on Manfred's comments.

Patch 3: is a trivial function rename.

Patches 4,5: are attempts to order how Linux ipc deals with EIDRM
and EINVAL return error codes. By looking at corresponding manpages
two possible inverted return codes are returned, these patches
make the manpages accurate now -- but I may have missed something,
and we are changing semantics. afaik EIDRM is specific to Linux
(other OSes only rely on EINVAL), which is already messy, so lets
try to make this consistent at least. 

Passes all ipc related ltp tests.

Thanks!

Davidlohr Bueso (5):
  ipc,shm: move BUG_ON check into shm_lock
  ipc,msg: provide barrier pairings for lockless receive
  ipc: rename ipc_obtain_object
  ipc,sysv: make return -EIDRM when racing with RMID consistent
  ipc,sysv: return -EINVAL upon incorrect id/seqnum

 ipc/msg.c  | 50 +++++++++++++++++++++++++++++++++++++++-----------
 ipc/sem.c  |  4 ++--
 ipc/shm.c  | 13 ++++++++-----
 ipc/util.c | 23 +++++++++++++----------
 ipc/util.h |  2 +-
 5 files changed, 63 insertions(+), 29 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH -next 0/5] ipc: EIDRM/EINVAL returns & misc updates Davidlohr Bueso <dave@stgolabs.net> - 2015-06-06 15:40 +0200
  [PATCH 1/5] ipc,shm: move BUG_ON check into shm_lock Davidlohr Bueso <dave@stgolabs.net> - 2015-06-06 15:40 +0200
  [PATCH 2/5] ipc,msg: provide barrier pairings for lockless receive Davidlohr Bueso <dave@stgolabs.net> - 2015-06-06 15:40 +0200
  [PATCH 4/5] ipc,sysv: make return -EIDRM when racing with RMID consistent Davidlohr Bueso <dave@stgolabs.net> - 2015-06-06 15:40 +0200
  [PATCH 3/5] ipc: rename ipc_obtain_object Davidlohr Bueso <dave@stgolabs.net> - 2015-06-06 15:40 +0200
  [PATCH 5/5] ipc,sysv: return -EINVAL upon incorrect id/seqnum Davidlohr Bueso <dave@stgolabs.net> - 2015-06-06 15:40 +0200

csiph-web