Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pete Zaitcev
Date: Tuesday, October 16, 2007 - 10:52 am

On Tue, 16 Oct 2007 16:54:49 +0300, Vitaliy Ivanov <vitalivanov@gmail.com> wrote:


It looks like you misunderstood why a static lock protects open counts.
This is done so you do not need to worry about in-structure lock which
can be freed together with the structure. Look at this:


The dev->sem is entirely unnecessary here. Every time you use
open_count, it's protected by minor_table_mutex. The name is a litte
unfortunate, feel free to rename it.

This is probably a problem in 2.6 as well. I don't know why people keep
writing these things. Someone at Ontrak needs to look into it.

-- Pete
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.4 patch] Port of adutux driver from 2.6 kernel to 2.4., Vitaliy Ivanov, (Sun Oct 14, 10:37 am)
Re: [2.4 patch] Port of adutux driver from 2.6 kernel to 2.4., Pete Zaitcev, (Tue Oct 16, 10:52 am)