summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2015-02-05 08:36:37 -0500
committerDavid S. Miller <davem@davemloft.net>2015-02-05 16:00:01 -0800
commit1186adf7df04e3b4298943fe89d9741ab42e30ff (patch)
treedeb0a73e9848722e6f33e41164ed787e59cb1a37 /block/blk-mq.c
parentc5898636c440da91d58f10beac00f073e68378df (diff)
tipc: simplify message forwarding and rejection in socket layer
Despite recent improvements, the handling of error codes and return values at reception of messages in the socket layer is still confusing. In this commit, we try to make it more comprehensible. First, we separate between the return values coming from the functions called by tipc_sk_rcv(), -those are TIPC specific error codes, and the return values returned by tipc_sk_rcv() itself. Second, we don't use the returned TIPC error code as indication for whether a buffer should be forwarded/rejected or not; instead we use the buffer pointer passed along with filter_msg(). This separation is necessary because we sometimes want to forward messages even when there is no error (i.e., protocol messages and successfully secondary looked up data messages). Reviewed-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions