lock_kernel(), mutex and VFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
	Reading arch/x86/kernel/cpuid.c I saw that lock_kernel() is used
	to protect offset variable. I think is better to use a lock in
	struct file to do that and all operations that touch some
	"struct file" take a local lock. 

	I think that the use of BLK could be reduced using a lock in
	struct file.
	
	My question is, Is that posiblle or I'm missing something?


	regards,
		diegows

-- 

--------------
Diego Woitasen

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux