您的位置:首页 > 其它

Documentation/aoe/todo.txt

2013-11-05 13:33 274 查看
Ifyouhaveanycommentorupdatetothecontent,pleasecontactthe

originaldocumentmaintainerdirectly.However,ifyouhaveaproblem

communicatinginEnglishyoucanalsoasktheChinesemaintainerfor

help.ContacttheChinesemaintainerifthistranslationisoutdated

orifthereisaproblemwiththetranslation.

Chinesemaintainer:沈芳丽<fairyshen@163.com>

---------------------------------------------------------------------

Documentation/aoe/todo.txt的中文翻译

如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文

交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻

译存在问题,请联系中文版维护者。

中文版维护者:沈芳丽<fairyshen@163.com>

中文版翻译者:沈芳丽<fairyshen@163.com>

中文版校译者:沈芳丽<fairyshen@163.com>

以下为正文

Thereisapotentialfordeadlockwhenallocatingastructsk_bufffordata

thatneedstobewrittenouttoaoestorage.

分配一个需要写入AOE存储数据的structsk_buff时,有一个潜在的死锁。


Ifthedataisbeingwrittenfromadirtypageinordertofreethatpage,andif

therearenootherpagesavailable,thendeadlockmayoccurwhenafreepage

isneededforthesk_buffallocation.

如果数据被写入脏页,以便释放该页面,如果没有其他页面,那么当需要一个

空闲页来分配sk_buff时可能会发生死锁情况。


Thissituationhasnotbeenobserved,butitwouldbenicetoeliminateany

potentialfordeadlockundermemorypressure.

这种情况还未被觉察到,但它有利于在内存压力下消除任何潜在的死锁。


BecauseATAoverEthernetisnotfragmentedbythekernel'sIPcode,

thedestructormemberofthestructsk_buffisavailabletotheaoe

driver.

由于以太网ATA内核的IP代码没有碎片,所以由析构函数的​​结构成员sk_buff

提供aoe驱动程序。


Byusingamempoolforallocatingallbutthefirstfewsk_buffs,andby

registeringadestructor,weshouldbeabletoefficientlyallocate

sk_buffswithoutintroducinganypotentialfordeadlock.



除了前几个sk_buff,其他所有的都通过内存池分配,并且通过注册析构

函数,我们应该能够有效地分配sk_buffs而不引入任何潜在的死锁。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: