glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

dht: Synchronize layout_(ref|unref) during layout_(get|set) in dht code

Open mohit84 opened this issue 2 years ago • 4 comments

Currently dht_layout(ref|unref) is happening after increase/decreate atomic counter. There is some race condition during new layout has been changed at the same time old layout is using in other thread.Due to this a client process is getting crashed.

Solution: Remove layout->ref_lock and use inode->lock to synchronize layout.

Fixes: #3262 Change-Id: I55952484bd651176f818b9cab54274f37dbca1a6 Signed-off-by: Mohit Agrawal [email protected]

mohit84 avatar Mar 24 '22 04:03 mohit84

/run regression

mohit84 avatar Mar 24 '22 04:03 mohit84

/recheck smoke

Shwetha-Acharya avatar Mar 24 '22 06:03 Shwetha-Acharya

/run regression

Shwetha-Acharya avatar Jun 14 '22 06:06 Shwetha-Acharya

/recheck smoke

Shwetha-Acharya avatar Sep 19 '22 06:09 Shwetha-Acharya

Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.

stale[bot] avatar May 20 '23 15:05 stale[bot]

Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it.

stale[bot] avatar Jun 10 '23 03:06 stale[bot]