File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,8 +120,6 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type)
120120 spin_lock_init (& new_op -> lock );
121121 init_completion (& new_op -> waitq );
122122
123- atomic_set (& new_op -> ref_count , 1 );
124-
125123 new_op -> upcall .type = ORANGEFS_VFS_OP_INVALID ;
126124 new_op -> downcall .type = ORANGEFS_VFS_OP_INVALID ;
127125 new_op -> downcall .status = -1 ;
@@ -149,7 +147,7 @@ struct orangefs_kernel_op_s *op_alloc(__s32 type)
149147 return new_op ;
150148}
151149
152- void __op_release (struct orangefs_kernel_op_s * orangefs_op )
150+ void op_release (struct orangefs_kernel_op_s * orangefs_op )
153151{
154152 if (orangefs_op ) {
155153 gossip_debug (GOSSIP_CACHE_DEBUG ,
Original file line number Diff line number Diff line change @@ -205,8 +205,6 @@ struct orangefs_kernel_op_s {
205205 struct completion waitq ;
206206 spinlock_t lock ;
207207
208- atomic_t ref_count ;
209-
210208 /* VFS aio fields */
211209
212210 int attempts ;
@@ -230,23 +228,7 @@ static inline void set_op_state_serviced(struct orangefs_kernel_op_s *op)
230228#define op_state_given_up (op ) ((op)->op_state & OP_VFS_STATE_GIVEN_UP)
231229#define op_is_cancel (op ) ((op)->upcall.type == ORANGEFS_VFS_OP_CANCEL)
232230
233- static inline void get_op (struct orangefs_kernel_op_s * op )
234- {
235- atomic_inc (& op -> ref_count );
236- gossip_debug (GOSSIP_DEV_DEBUG ,
237- "(get) Alloced OP (%p:%llu)\n" , op , llu (op -> tag ));
238- }
239-
240- void __op_release (struct orangefs_kernel_op_s * op );
241-
242- static inline void op_release (struct orangefs_kernel_op_s * op )
243- {
244- if (atomic_dec_and_test (& op -> ref_count )) {
245- gossip_debug (GOSSIP_DEV_DEBUG ,
246- "(put) Releasing OP (%p:%llu)\n" , op , llu ((op )-> tag ));
247- __op_release (op );
248- }
249- }
231+ void op_release (struct orangefs_kernel_op_s * op );
250232
251233extern void orangefs_bufmap_put (int );
252234static inline void put_cancel (struct orangefs_kernel_op_s * op )
You can’t perform that action at this time.
0 commit comments