linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/25] SUNRPC: remove BUG_ON in __rpc_clnt_handle_event
@ 2012-10-16 16:30 Weston Andros Adamson
  2012-10-16 16:30 ` [PATCH 02/25] SUNRPC: remove BUG_ON from rpc_bind_new_program Weston Andros Adamson
                   ` (23 more replies)
  0 siblings, 24 replies; 33+ messages in thread
From: Weston Andros Adamson @ 2012-10-16 16:30 UTC (permalink / raw)
  To: Trond.Myklebust; +Cc: linux-nfs, Weston Andros Adamson

Print a KERN_INFO message before rpc_d_lookup_sb returns NULL, like
other error paths in that function.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
---
 net/sunrpc/clnt.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index cdc7564..abb7f5e 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -132,8 +132,10 @@ static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
 	int error;
 
 	dir = rpc_d_lookup_sb(sb, dir_name);
-	if (dir == NULL)
+	if (dir == NULL) {
+		pr_info("RPC: pipefs directory doesn't exist: %s\n", dir_name);
 		return dir;
+	}
 	for (;;) {
 		q.len = snprintf(name, sizeof(name), "clnt%x", (unsigned int)clntid++);
 		name[sizeof(name) - 1] = '\0';
@@ -192,7 +194,8 @@ static int __rpc_clnt_handle_event(struct rpc_clnt *clnt, unsigned long event,
 	case RPC_PIPEFS_MOUNT:
 		dentry = rpc_setup_pipedir_sb(sb, clnt,
 					      clnt->cl_program->pipe_dir_name);
-		BUG_ON(dentry == NULL);
+		if (!dentry)
+			return -ENOENT;
 		if (IS_ERR(dentry))
 			return PTR_ERR(dentry);
 		clnt->cl_dentry = dentry;
-- 
1.7.9.6 (Apple Git-31.1)


^ permalink raw reply related	[flat|nested] 33+ messages in thread
* [PATCH 00/25] SUNRPC: remove many BUG_ONs
@ 2012-10-23 14:43 Weston Andros Adamson
  2012-10-23 14:43 ` [PATCH 03/25] SUNRPC: remove BUG_ON from rpc_run_bc_task Weston Andros Adamson
  0 siblings, 1 reply; 33+ messages in thread
From: Weston Andros Adamson @ 2012-10-23 14:43 UTC (permalink / raw)
  To: Trond.Myklebust; +Cc: linux-nfs

Applied Trond's comments.

-dros


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2012-10-23 14:53 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16 16:30 [PATCH 01/25] SUNRPC: remove BUG_ON in __rpc_clnt_handle_event Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 02/25] SUNRPC: remove BUG_ON from rpc_bind_new_program Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 03/25] SUNRPC: remove BUG_ON() from rpc_run_bc_task Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 04/25] SUNRPC: remove BUG_ON() from call_transmit() Weston Andros Adamson
2012-10-18 18:49   ` Myklebust, Trond
2012-10-18 19:10   ` Myklebust, Trond
2012-10-16 16:30 ` [PATCH 05/25] SUNRPC: remove BUG_ON() from rpc_call_sync() Weston Andros Adamson
2012-10-18 18:48   ` Myklebust, Trond
2012-10-18 19:06   ` Myklebust, Trond
2012-10-16 16:30 ` [PATCH 06/25] SUNRPC: remove BUG_ON() from call_bc_transmit() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 07/25] " Weston Andros Adamson
2012-10-18 19:09   ` Myklebust, Trond
2012-10-16 16:30 ` [PATCH 08/25] SUNRPC: remove BUG_ON() from rpc_sleep_on*() Weston Andros Adamson
2012-10-18 18:54   ` Myklebust, Trond
2012-10-16 16:30 ` [PATCH 09/25] SUNRPC: remove two BUG_ON() asserts Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 10/25] SUNRPC: remove BUG_ON() from xprt_destroy_backchannel Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 11/25] SUNRPC: remove BUG_ON() from bc_send() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 12/25] SUNRPC: remove BUG_ON() calls from cache_read() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 13/25] SUNRPC: remove BUG_ON() in rpc_put_sb_net() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 14/25] SUNRPC: remove BUG_ON() from svc_pool_map_set_cpumask() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 15/25] SUNRPC: remove BUG_ON()s from *_reclassify_socket* Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 16/25] SUNRPC: remove BUG_ON() in svc_xprt_received() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 17/25] SUNRPC: remove BUG_ON()s checking RPCSVC_MAXPAGES Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 18/25] SUNRPC: remove BUG_ON() in xdr_shrink_bufhead() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 19/25] SUNRPC: remove BUG_ON() from bc_malloc() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 20/25] SUNRPC: remove BUG_ON() from encode_rpcb_string() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 21/25] SUNRPC: remove BUG_ON() in svc_register() Weston Andros Adamson
2012-10-18 19:00   ` Myklebust, Trond
2012-10-16 16:30 ` [PATCH 22/25] SUNRPC: remove BUG_ON() from __rpc_sleep_on_priority() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 23/25] SUNRPC: remove BUG_ON()s checking RPC_IS_QUEUED() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 24/25] SUNRPC: remove BUG_ON() in svc_delete_xprt() Weston Andros Adamson
2012-10-16 16:30 ` [PATCH 25/25] SUNRPC: remove BUG_ON() in rpc_release_task() Weston Andros Adamson
  -- strict thread matches above, loose matches on Subject: below --
2012-10-23 14:43 [PATCH 00/25] SUNRPC: remove many BUG_ONs Weston Andros Adamson
2012-10-23 14:43 ` [PATCH 03/25] SUNRPC: remove BUG_ON from rpc_run_bc_task Weston Andros Adamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).