Re: [PATCH 0/5] pnfs-submit fix kfree under spin lock

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

 



On Tue, Jul 20, 2010 at 01:01:18PM -0400, andros@xxxxxxxxxx wrote:
> 
> Fix kfree under spin lock
> 
> Both put_lseg and put_layout are called under the inode i_lock where the
> last reference will end up freeing structures.
> 
> I know there has been a lot of churn in this code, but free'ing under the
> spin lock is a no-no.

kfree under a spinlock is perfectly fine.  That is as long as you
don't free the spinlock itself.

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux