diff options
author | Mike Marshall <hubcap@omnibond.com> | 2016-03-03 13:46:48 -0500 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-03 13:46:48 -0500 |
commit | 9d9e7ba9ee8f304c4608f3c81aa5e7fb3bddd251 (patch) | |
tree | 73cd63e6279ae26fa5415fdaf65d08a67c417a8c /fs/orangefs | |
parent | 9f08cfe94417f782393330cbfc95617c04f051c2 (diff) |
Orangefs: improve gossip statements
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/devorangefs-req.c | 18 | ||||
-rw-r--r-- | fs/orangefs/file.c | 8 | ||||
-rw-r--r-- | fs/orangefs/orangefs-mod.c | 11 | ||||
-rw-r--r-- | fs/orangefs/waitqueue.c | 33 |
4 files changed, 49 insertions, 21 deletions
diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c index d50f89ea302e..0f9a12ac7458 100644 --- a/fs/orangefs/devorangefs-req.c +++ b/fs/orangefs/devorangefs-req.c | |||
@@ -245,6 +245,12 @@ restart: | |||
245 | * it has been sent to the client. | 245 | * it has been sent to the client. |
246 | */ | 246 | */ |
247 | set_op_state_inprogress(cur_op); | 247 | set_op_state_inprogress(cur_op); |
248 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
249 | "%s: 1 op:%s: op_state:%d: process:%s:\n", | ||
250 | __func__, | ||
251 | get_opname_string(cur_op), | ||
252 | cur_op->op_state, | ||
253 | current->comm); | ||
248 | orangefs_devreq_add_op(cur_op); | 254 | orangefs_devreq_add_op(cur_op); |
249 | spin_unlock(&cur_op->lock); | 255 | spin_unlock(&cur_op->lock); |
250 | spin_unlock(&htable_ops_in_progress_lock); | 256 | spin_unlock(&htable_ops_in_progress_lock); |
@@ -262,6 +268,12 @@ error: | |||
262 | spin_lock(&cur_op->lock); | 268 | spin_lock(&cur_op->lock); |
263 | if (likely(!op_state_given_up(cur_op))) { | 269 | if (likely(!op_state_given_up(cur_op))) { |
264 | set_op_state_waiting(cur_op); | 270 | set_op_state_waiting(cur_op); |
271 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
272 | "%s: 2 op:%s: op_state:%d: process:%s:\n", | ||
273 | __func__, | ||
274 | get_opname_string(cur_op), | ||
275 | cur_op->op_state, | ||
276 | current->comm); | ||
265 | list_add(&cur_op->list, &orangefs_request_list); | 277 | list_add(&cur_op->list, &orangefs_request_list); |
266 | spin_unlock(&cur_op->lock); | 278 | spin_unlock(&cur_op->lock); |
267 | } else { | 279 | } else { |
@@ -416,6 +428,12 @@ wakeup: | |||
416 | complete(&op->waitq); | 428 | complete(&op->waitq); |
417 | } else { | 429 | } else { |
418 | set_op_state_serviced(op); | 430 | set_op_state_serviced(op); |
431 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
432 | "%s: op:%s: op_state:%d: process:%s:\n", | ||
433 | __func__, | ||
434 | get_opname_string(op), | ||
435 | op->op_state, | ||
436 | current->comm); | ||
419 | spin_unlock(&op->lock); | 437 | spin_unlock(&op->lock); |
420 | } | 438 | } |
421 | return ret; | 439 | return ret; |
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index 399d5288dc1a..6f2e0f745c5d 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c | |||
@@ -214,18 +214,14 @@ populate_shared_memory: | |||
214 | goto out; | 214 | goto out; |
215 | } | 215 | } |
216 | gossip_debug(GOSSIP_FILE_DEBUG, | 216 | gossip_debug(GOSSIP_FILE_DEBUG, |
217 | "%s(%pU): Amount written as returned by the sys-io call:%d\n", | 217 | "%s(%pU): Amount %s, returned by the sys-io call:%d\n", |
218 | __func__, | 218 | __func__, |
219 | handle, | 219 | handle, |
220 | type == ORANGEFS_IO_READ ? "read" : "written", | ||
220 | (int)new_op->downcall.resp.io.amt_complete); | 221 | (int)new_op->downcall.resp.io.amt_complete); |
221 | 222 | ||
222 | ret = new_op->downcall.resp.io.amt_complete; | 223 | ret = new_op->downcall.resp.io.amt_complete; |
223 | 224 | ||
224 | /* | ||
225 | * tell the device file owner waiting on I/O that this read has | ||
226 | * completed and it can return now. | ||
227 | */ | ||
228 | |||
229 | out: | 225 | out: |
230 | if (buffer_index >= 0) { | 226 | if (buffer_index >= 0) { |
231 | orangefs_bufmap_put(buffer_index); | 227 | orangefs_bufmap_put(buffer_index); |
diff --git a/fs/orangefs/orangefs-mod.c b/fs/orangefs/orangefs-mod.c index a4e08dd3e669..91a4293d1cd7 100644 --- a/fs/orangefs/orangefs-mod.c +++ b/fs/orangefs/orangefs-mod.c | |||
@@ -261,12 +261,13 @@ void purge_inprogress_ops(void) | |||
261 | next, | 261 | next, |
262 | &htable_ops_in_progress[i], | 262 | &htable_ops_in_progress[i], |
263 | list) { | 263 | list) { |
264 | gossip_debug(GOSSIP_INIT_DEBUG, | ||
265 | "pvfs2-client-core: purging in-progress op tag " | ||
266 | "%llu %s\n", | ||
267 | llu(op->tag), | ||
268 | get_opname_string(op)); | ||
269 | set_op_state_purged(op); | 264 | set_op_state_purged(op); |
265 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
266 | "%s: op:%s: op_state:%d: process:%s:\n", | ||
267 | __func__, | ||
268 | get_opname_string(op), | ||
269 | op->op_state, | ||
270 | current->comm); | ||
270 | } | 271 | } |
271 | spin_unlock(&htable_ops_in_progress_lock); | 272 | spin_unlock(&htable_ops_in_progress_lock); |
272 | } | 273 | } |
diff --git a/fs/orangefs/waitqueue.c b/fs/orangefs/waitqueue.c index edfd921cf6ec..31635bc303fe 100644 --- a/fs/orangefs/waitqueue.c +++ b/fs/orangefs/waitqueue.c | |||
@@ -37,6 +37,12 @@ void purge_waiting_ops(void) | |||
37 | llu(op->tag), | 37 | llu(op->tag), |
38 | get_opname_string(op)); | 38 | get_opname_string(op)); |
39 | set_op_state_purged(op); | 39 | set_op_state_purged(op); |
40 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
41 | "%s: op:%s: op_state:%d: process:%s:\n", | ||
42 | __func__, | ||
43 | get_opname_string(op), | ||
44 | op->op_state, | ||
45 | current->comm); | ||
40 | } | 46 | } |
41 | spin_unlock(&orangefs_request_list_lock); | 47 | spin_unlock(&orangefs_request_list_lock); |
42 | } | 48 | } |
@@ -101,6 +107,12 @@ retry_servicing: | |||
101 | spin_lock(&orangefs_request_list_lock); | 107 | spin_lock(&orangefs_request_list_lock); |
102 | spin_lock(&op->lock); | 108 | spin_lock(&op->lock); |
103 | set_op_state_waiting(op); | 109 | set_op_state_waiting(op); |
110 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
111 | "%s: op:%s: op_state:%d: process:%s:\n", | ||
112 | __func__, | ||
113 | get_opname_string(op), | ||
114 | op->op_state, | ||
115 | current->comm); | ||
104 | /* add high priority remount op to the front of the line. */ | 116 | /* add high priority remount op to the front of the line. */ |
105 | if (flags & ORANGEFS_OP_PRIORITY) | 117 | if (flags & ORANGEFS_OP_PRIORITY) |
106 | list_add(&op->list, &orangefs_request_list); | 118 | list_add(&op->list, &orangefs_request_list); |
@@ -173,7 +185,8 @@ retry_servicing: | |||
173 | 185 | ||
174 | out: | 186 | out: |
175 | gossip_debug(GOSSIP_WAIT_DEBUG, | 187 | gossip_debug(GOSSIP_WAIT_DEBUG, |
176 | "orangefs: service_operation %s returning: %d for %p.\n", | 188 | "%s: %s returning: %d for %p.\n", |
189 | __func__, | ||
177 | op_name, | 190 | op_name, |
178 | ret, | 191 | ret, |
179 | op); | 192 | op); |
@@ -204,6 +217,12 @@ bool orangefs_cancel_op_in_progress(struct orangefs_kernel_op_s *op) | |||
204 | } | 217 | } |
205 | spin_lock(&op->lock); | 218 | spin_lock(&op->lock); |
206 | set_op_state_waiting(op); | 219 | set_op_state_waiting(op); |
220 | gossip_debug(GOSSIP_DEV_DEBUG, | ||
221 | "%s: op:%s: op_state:%d: process:%s:\n", | ||
222 | __func__, | ||
223 | get_opname_string(op), | ||
224 | op->op_state, | ||
225 | current->comm); | ||
207 | list_add(&op->list, &orangefs_request_list); | 226 | list_add(&op->list, &orangefs_request_list); |
208 | spin_unlock(&op->lock); | 227 | spin_unlock(&op->lock); |
209 | spin_unlock(&orangefs_request_list_lock); | 228 | spin_unlock(&orangefs_request_list_lock); |
@@ -310,9 +329,7 @@ static int wait_for_matching_downcall(struct orangefs_kernel_op_s *op, | |||
310 | 329 | ||
311 | if (unlikely(n < 0)) { | 330 | if (unlikely(n < 0)) { |
312 | gossip_debug(GOSSIP_WAIT_DEBUG, | 331 | gossip_debug(GOSSIP_WAIT_DEBUG, |
313 | "*** %s:" | 332 | "%s: operation interrupted, tag %llu, %p\n", |
314 | " operation interrupted by a signal (tag " | ||
315 | "%llu, op %p)\n", | ||
316 | __func__, | 333 | __func__, |
317 | llu(op->tag), | 334 | llu(op->tag), |
318 | op); | 335 | op); |
@@ -320,9 +337,7 @@ static int wait_for_matching_downcall(struct orangefs_kernel_op_s *op, | |||
320 | } | 337 | } |
321 | if (op_state_purged(op)) { | 338 | if (op_state_purged(op)) { |
322 | gossip_debug(GOSSIP_WAIT_DEBUG, | 339 | gossip_debug(GOSSIP_WAIT_DEBUG, |
323 | "*** %s:" | 340 | "%s: operation purged, tag %llu, %p, %d\n", |
324 | " operation purged (tag " | ||
325 | "%llu, %p, att %d)\n", | ||
326 | __func__, | 341 | __func__, |
327 | llu(op->tag), | 342 | llu(op->tag), |
328 | op, | 343 | op, |
@@ -333,9 +348,7 @@ static int wait_for_matching_downcall(struct orangefs_kernel_op_s *op, | |||
333 | } | 348 | } |
334 | /* must have timed out, then... */ | 349 | /* must have timed out, then... */ |
335 | gossip_debug(GOSSIP_WAIT_DEBUG, | 350 | gossip_debug(GOSSIP_WAIT_DEBUG, |
336 | "*** %s:" | 351 | "%s: operation timed out, tag %llu, %p, %d)\n", |
337 | " operation timed out (tag" | ||
338 | " %llu, %p, att %d)\n", | ||
339 | __func__, | 352 | __func__, |
340 | llu(op->tag), | 353 | llu(op->tag), |
341 | op, | 354 | op, |