QoS memory corruption issue

Review Request #199 — Created March 22, 2024 and updated

pradeep
APV10
10_4_0_122_gail
640
kdutta, prajesh, roland, tanya

Memory corruption in QoS due to race conditions between the atcp threads.
Now thread Mutex are used to lock and unlock critical sections



Description From Last Updated

intead of using a global lock, use a lock at the queue level , it will be efficient and granular.

prajeshprajesh

We dont create a filter when it is cleaning up.. So we should have a bug to improvise this or …

prajeshprajesh

please remove the spaces/tabs

tanyatanya

what is 2 here? Can we have a #define ?

prajeshprajesh

why it is called as temp_q_count? can we call it "set_session_queue_count" something more meaningful ?

prajeshprajesh

better to have a #define for 50000 since its used in several places

tanyatanya

so this does not have lock before setting her but the idea is that its protected by the cli kapi_lock, …

tanyatanya

do we need to unlock here as well since we are returning? maybe better make a goto and unlock in …

tanyatanya

remove temp

prajeshprajesh

temp is redundant... you print directly from pQoSQRoot->sQNam

prajeshprajesh
tanya
  1. 
      
  2. better to have a #define for 50000 since its used in several places

  3. so this does not have lock before setting her but the idea is that its protected by the cli kapi_lock, is that correct?

  4. do we need to unlock here as well since we are returning?
    maybe better make a goto and unlock in one spot? but i know sometimes reorganising the finc to have a goto will add more issues, so it's up to you if you want to change tp goto.

  5. 
      
prajesh
  1. 
      
  2. intead of using a global lock, use a lock at the queue level , it will be efficient and granular.

  3. We dont create a filter when it is cleaning up.. So we should have a bug to improvise this or record this as a known limitation.

  4. what is 2 here? Can we have a #define ?

  5. why it is called as temp_q_count? can we call it "set_session_queue_count" something more meaningful ?

  6. temp is redundant... you print directly from pQoSQRoot->sQNam

  7. 
      
pradeep
Review request changed
prajesh
  1. Ship It!
  2. 
      
tanya
  1. Ship It!
  2. 
      
Loading...