diff options
author | Mike Marshall <hubcap@omnibond.com> | 2016-02-16 17:09:09 -0500 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-02-19 13:45:55 -0500 |
commit | 5253487e0445d7bc9b7488e78aa3d65d4bbb158e (patch) | |
tree | d122b3021dec4a9604dae7df29966514153fa9f5 /fs/orangefs | |
parent | 897c5df6cf8c10d2557c098641faa62f65ef8598 (diff) |
Orangefs: make some gossip statements more helpful.
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/inode.c | 4 | ||||
-rw-r--r-- | fs/orangefs/namei.c | 44 | ||||
-rw-r--r-- | fs/orangefs/waitqueue.c | 14 |
3 files changed, 41 insertions, 21 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c index d2923dc91388..4e923ece1e09 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c | |||
@@ -443,8 +443,8 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir, | |||
443 | int error; | 443 | int error; |
444 | 444 | ||
445 | gossip_debug(GOSSIP_INODE_DEBUG, | 445 | gossip_debug(GOSSIP_INODE_DEBUG, |
446 | "orangefs_get_custom_inode_common: called\n" | 446 | "%s:(sb is %p | MAJOR(dev)=%u | MINOR(dev)=%u mode=%o)\n", |
447 | "(sb is %p | MAJOR(dev)=%u | MINOR(dev)=%u mode=%o)\n", | 447 | __func__, |
448 | sb, | 448 | sb, |
449 | MAJOR(dev), | 449 | MAJOR(dev), |
450 | MINOR(dev), | 450 | MINOR(dev), |
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c index 8fc55c6f58db..b3ae3749a932 100644 --- a/fs/orangefs/namei.c +++ b/fs/orangefs/namei.c | |||
@@ -24,7 +24,9 @@ static int orangefs_create(struct inode *dir, | |||
24 | struct inode *inode; | 24 | struct inode *inode; |
25 | int ret; | 25 | int ret; |
26 | 26 | ||
27 | gossip_debug(GOSSIP_NAME_DEBUG, "%s: called\n", __func__); | 27 | gossip_debug(GOSSIP_NAME_DEBUG, "%s: %s\n", |
28 | __func__, | ||
29 | dentry->d_name.name); | ||
28 | 30 | ||
29 | new_op = op_alloc(ORANGEFS_VFS_OP_CREATE); | 31 | new_op = op_alloc(ORANGEFS_VFS_OP_CREATE); |
30 | if (!new_op) | 32 | if (!new_op) |
@@ -41,35 +43,39 @@ static int orangefs_create(struct inode *dir, | |||
41 | ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); | 43 | ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); |
42 | 44 | ||
43 | gossip_debug(GOSSIP_NAME_DEBUG, | 45 | gossip_debug(GOSSIP_NAME_DEBUG, |
44 | "Create Got ORANGEFS handle %pU on fsid %d (ret=%d)\n", | 46 | "%s: %s: handle:%pU: fsid:%d: new_op:%p: ret:%d:\n", |
47 | __func__, | ||
48 | dentry->d_name.name, | ||
45 | &new_op->downcall.resp.create.refn.khandle, | 49 | &new_op->downcall.resp.create.refn.khandle, |
46 | new_op->downcall.resp.create.refn.fs_id, ret); | 50 | new_op->downcall.resp.create.refn.fs_id, |
51 | new_op, | ||
52 | ret); | ||
47 | 53 | ||
48 | if (ret < 0) { | 54 | if (ret < 0) |
49 | gossip_debug(GOSSIP_NAME_DEBUG, | ||
50 | "%s: failed with error code %d\n", | ||
51 | __func__, ret); | ||
52 | goto out; | 55 | goto out; |
53 | } | ||
54 | 56 | ||
55 | inode = orangefs_new_inode(dir->i_sb, dir, S_IFREG | mode, 0, | 57 | inode = orangefs_new_inode(dir->i_sb, dir, S_IFREG | mode, 0, |
56 | &new_op->downcall.resp.create.refn); | 58 | &new_op->downcall.resp.create.refn); |
57 | if (IS_ERR(inode)) { | 59 | if (IS_ERR(inode)) { |
58 | gossip_err("*** Failed to allocate orangefs file inode\n"); | 60 | gossip_err("%s: Failed to allocate inode for file :%s:\n", |
61 | __func__, | ||
62 | dentry->d_name.name); | ||
59 | ret = PTR_ERR(inode); | 63 | ret = PTR_ERR(inode); |
60 | goto out; | 64 | goto out; |
61 | } | 65 | } |
62 | 66 | ||
63 | gossip_debug(GOSSIP_NAME_DEBUG, | 67 | gossip_debug(GOSSIP_NAME_DEBUG, |
64 | "Assigned file inode new number of %pU\n", | 68 | "%s: Assigned inode :%pU: for file :%s:\n", |
65 | get_khandle_from_ino(inode)); | 69 | __func__, |
70 | get_khandle_from_ino(inode), | ||
71 | dentry->d_name.name); | ||
66 | 72 | ||
67 | d_instantiate(dentry, inode); | 73 | d_instantiate(dentry, inode); |
68 | unlock_new_inode(inode); | 74 | unlock_new_inode(inode); |
69 | 75 | ||
70 | gossip_debug(GOSSIP_NAME_DEBUG, | 76 | gossip_debug(GOSSIP_NAME_DEBUG, |
71 | "Inode (Regular File) %pU -> %s\n", | 77 | "%s: dentry instantiated for %s\n", |
72 | get_khandle_from_ino(inode), | 78 | __func__, |
73 | dentry->d_name.name); | 79 | dentry->d_name.name); |
74 | 80 | ||
75 | SetMtimeFlag(parent); | 81 | SetMtimeFlag(parent); |
@@ -78,7 +84,11 @@ static int orangefs_create(struct inode *dir, | |||
78 | ret = 0; | 84 | ret = 0; |
79 | out: | 85 | out: |
80 | op_release(new_op); | 86 | op_release(new_op); |
81 | gossip_debug(GOSSIP_NAME_DEBUG, "%s: returning %d\n", __func__, ret); | 87 | gossip_debug(GOSSIP_NAME_DEBUG, |
88 | "%s: %s: returning %d\n", | ||
89 | __func__, | ||
90 | dentry->d_name.name, | ||
91 | ret); | ||
82 | return ret; | 92 | return ret; |
83 | } | 93 | } |
84 | 94 | ||
@@ -229,7 +239,11 @@ static int orangefs_unlink(struct inode *dir, struct dentry *dentry) | |||
229 | ret = service_operation(new_op, "orangefs_unlink", | 239 | ret = service_operation(new_op, "orangefs_unlink", |
230 | get_interruptible_flag(inode)); | 240 | get_interruptible_flag(inode)); |
231 | 241 | ||
232 | /* when request is serviced properly, free req op struct */ | 242 | gossip_debug(GOSSIP_NAME_DEBUG, |
243 | "%s: service_operation returned:%d:\n", | ||
244 | __func__, | ||
245 | ret); | ||
246 | |||
233 | op_release(new_op); | 247 | op_release(new_op); |
234 | 248 | ||
235 | if (!ret) { | 249 | if (!ret) { |
diff --git a/fs/orangefs/waitqueue.c b/fs/orangefs/waitqueue.c index 36eedd6a8335..2c47f159d1d8 100644 --- a/fs/orangefs/waitqueue.c +++ b/fs/orangefs/waitqueue.c | |||
@@ -67,11 +67,10 @@ int service_operation(struct orangefs_kernel_op_s *op, | |||
67 | retry_servicing: | 67 | retry_servicing: |
68 | op->downcall.status = 0; | 68 | op->downcall.status = 0; |
69 | gossip_debug(GOSSIP_WAIT_DEBUG, | 69 | gossip_debug(GOSSIP_WAIT_DEBUG, |
70 | "orangefs: service_operation: %s %p\n", | 70 | "%s: %s op:%p: process:%s: pid:%d:\n", |
71 | __func__, | ||
71 | op_name, | 72 | op_name, |
72 | op); | 73 | op, |
73 | gossip_debug(GOSSIP_WAIT_DEBUG, | ||
74 | "orangefs: operation posted by process: %s, pid: %i\n", | ||
75 | current->comm, | 74 | current->comm, |
76 | current->pid); | 75 | current->pid); |
77 | 76 | ||
@@ -122,6 +121,13 @@ retry_servicing: | |||
122 | 121 | ||
123 | ret = wait_for_matching_downcall(op, timeout, | 122 | ret = wait_for_matching_downcall(op, timeout, |
124 | flags & ORANGEFS_OP_INTERRUPTIBLE); | 123 | flags & ORANGEFS_OP_INTERRUPTIBLE); |
124 | |||
125 | gossip_debug(GOSSIP_WAIT_DEBUG, | ||
126 | "%s: wait_for_matching_downcall returned %d for %p\n", | ||
127 | __func__, | ||
128 | ret, | ||
129 | op); | ||
130 | |||
125 | if (!ret) { | 131 | if (!ret) { |
126 | spin_unlock(&op->lock); | 132 | spin_unlock(&op->lock); |
127 | /* got matching downcall; make sure status is in errno format */ | 133 | /* got matching downcall; make sure status is in errno format */ |