[mythtv-commits] Ticket #9959: [PATCH] ringbuffer: Fix a deadlock in readahead

MythTV noreply at mythtv.org
Mon Aug 1 15:48:46 UTC 2011


#9959: [PATCH] ringbuffer: Fix a deadlock in readahead
-------------------------------------------------+-------------------------
 Reporter:  Lawrence Rust <lvr@…>                |          Owner:  danielk
     Type:  Patch - Bug Fix                      |         Status:
 Priority:  minor                                |  accepted
Component:  MythTV - General                     |      Milestone:  unknown
 Severity:  medium                               |        Version:  Trunk
 Keywords:  ringbuffer deadlock                  |  Head
                                                 |     Resolution:
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------

Comment (by danielk):

 Lawrence can you take a look at 9959-2.patch ? My concern is that with the
 lock undone during read_safe() the rbwpos could be changed during the
 read.. This was really already a problem because we unlocked rbwlock
 before we did the update, but I believe 9959-v2.patch might fix both
 problems by comparing rbwpos with rbwposcopy once we acquire the write
 lock.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9959#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list