Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Orangefs: improve gossip statements

Signed-off-by: Mike Marshall <hubcap@omnibond.com>

+49 -21
+18
fs/orangefs/devorangefs-req.c
··· 245 245 * it has been sent to the client. 246 246 */ 247 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 254 orangefs_devreq_add_op(cur_op); 249 255 spin_unlock(&cur_op->lock); 250 256 spin_unlock(&htable_ops_in_progress_lock); ··· 268 262 spin_lock(&cur_op->lock); 269 263 if (likely(!op_state_given_up(cur_op))) { 270 264 set_op_state_waiting(cur_op); 265 + gossip_debug(GOSSIP_DEV_DEBUG, 266 + "%s: 2 op:%s: op_state:%d: process:%s:\n", 267 + __func__, 268 + get_opname_string(cur_op), 269 + cur_op->op_state, 270 + current->comm); 271 271 list_add(&cur_op->list, &orangefs_request_list); 272 272 spin_unlock(&cur_op->lock); 273 273 } else { ··· 428 416 complete(&op->waitq); 429 417 } else { 430 418 set_op_state_serviced(op); 419 + gossip_debug(GOSSIP_DEV_DEBUG, 420 + "%s: op:%s: op_state:%d: process:%s:\n", 421 + __func__, 422 + get_opname_string(op), 423 + op->op_state, 424 + current->comm); 431 425 spin_unlock(&op->lock); 432 426 } 433 427 return ret;
+2 -6
fs/orangefs/file.c
··· 214 214 goto out; 215 215 } 216 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 218 __func__, 219 219 handle, 220 + type == ORANGEFS_IO_READ ? "read" : "written", 220 221 (int)new_op->downcall.resp.io.amt_complete); 221 222 222 223 ret = new_op->downcall.resp.io.amt_complete; 223 - 224 - /* 225 - * tell the device file owner waiting on I/O that this read has 226 - * completed and it can return now. 227 - */ 228 224 229 225 out: 230 226 if (buffer_index >= 0) {
+6 -5
fs/orangefs/orangefs-mod.c
··· 261 261 next, 262 262 &htable_ops_in_progress[i], 263 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 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 272 spin_unlock(&htable_ops_in_progress_lock); 272 273 }
+23 -10
fs/orangefs/waitqueue.c
··· 37 37 llu(op->tag), 38 38 get_opname_string(op)); 39 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 47 spin_unlock(&orangefs_request_list_lock); 42 48 } ··· 107 101 spin_lock(&orangefs_request_list_lock); 108 102 spin_lock(&op->lock); 109 103 set_op_state_waiting(op); 104 + gossip_debug(GOSSIP_DEV_DEBUG, 105 + "%s: op:%s: op_state:%d: process:%s:\n", 106 + __func__, 107 + get_opname_string(op), 108 + op->op_state, 109 + current->comm); 110 110 /* add high priority remount op to the front of the line. */ 111 111 if (flags & ORANGEFS_OP_PRIORITY) 112 112 list_add(&op->list, &orangefs_request_list); ··· 185 173 186 174 out: 187 175 gossip_debug(GOSSIP_WAIT_DEBUG, 188 - "orangefs: service_operation %s returning: %d for %p.\n", 176 + "%s: %s returning: %d for %p.\n", 177 + __func__, 189 178 op_name, 190 179 ret, 191 180 op); ··· 217 204 } 218 205 spin_lock(&op->lock); 219 206 set_op_state_waiting(op); 207 + gossip_debug(GOSSIP_DEV_DEBUG, 208 + "%s: op:%s: op_state:%d: process:%s:\n", 209 + __func__, 210 + get_opname_string(op), 211 + op->op_state, 212 + current->comm); 220 213 list_add(&op->list, &orangefs_request_list); 221 214 spin_unlock(&op->lock); 222 215 spin_unlock(&orangefs_request_list_lock); ··· 329 310 330 311 if (unlikely(n < 0)) { 331 312 gossip_debug(GOSSIP_WAIT_DEBUG, 332 - "*** %s:" 333 - " operation interrupted by a signal (tag " 334 - "%llu, op %p)\n", 313 + "%s: operation interrupted, tag %llu, %p\n", 335 314 __func__, 336 315 llu(op->tag), 337 316 op); ··· 337 320 } 338 321 if (op_state_purged(op)) { 339 322 gossip_debug(GOSSIP_WAIT_DEBUG, 340 - "*** %s:" 341 - " operation purged (tag " 342 - "%llu, %p, att %d)\n", 323 + "%s: operation purged, tag %llu, %p, %d\n", 343 324 __func__, 344 325 llu(op->tag), 345 326 op, ··· 348 333 } 349 334 /* must have timed out, then... */ 350 335 gossip_debug(GOSSIP_WAIT_DEBUG, 351 - "*** %s:" 352 - " operation timed out (tag" 353 - " %llu, %p, att %d)\n", 336 + "%s: operation timed out, tag %llu, %p, %d)\n", 354 337 __func__, 355 338 llu(op->tag), 356 339 op,