{"id":618,"date":"2014-11-06T02:35:11","date_gmt":"2014-11-06T02:35:11","guid":{"rendered":"http:\/\/www.selinuxplus.com\/?p=618"},"modified":"2014-11-06T02:35:11","modified_gmt":"2014-11-06T02:35:11","slug":"centosredhat-kernel-%e6%94%af%e6%8c%81rbd%e6%a8%a1%e5%9d%97el7","status":"publish","type":"post","link":"http:\/\/www.selinuxplus.com\/?p=618","title":{"rendered":"centos\/redhat kernel \u652f\u6301rbd\u6a21\u5757(el7)"},"content":{"rendered":"<p>el\u5185\u68383.10.0-123.el7.x86_64\u9ed8\u8ba4\u4e0d\u652f\u6301rbd\u6a21\u5757\uff0c\u9700\u8981\u5c06rbd\u6a21\u5757\u7f16\u8bd1\u8fdb\u53bb\u3002<\/p>\n<p>1 \u9700\u8981\u5c06config\u7684\u914d\u7f6e\u9879\u6253\u5f00\u3002\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:default decode:true \" >\r\n[root@66 SOURCES]# cat kernel-3.10.0-x86_64.config |grep CEPH\r\nCONFIG_CEPH_LIB=m\r\nCONFIG_CEPH_LIB_PRETTYDEBUG=y\r\nCONFIG_CEPH_LIB_USE_DNS_RESOLVER=y\r\n# CONFIG_CEPH_FS is not set\r\n[root@66 SOURCES]# cat kernel-3.10.0-x86_64.config |grep RBD\r\n# CONFIG_BLK_DEV_DRBD is not set\r\nCONFIG_BLK_DEV_RBD=m<\/pre>\n<p>2 \u7f16\u8bd1\u8fc7\u7a0b\u53ef\u4ee5\u9009\u62e9\u53ea\u7f16\u8bd1\u6a21\u5757\uff0c\u4e5f\u53ef\u4ee5\u5c06kernel\u91cd\u65b0\u7f16\u8bd1\u3002\u6a21\u5757\u7f16\u8bd1\u89c1\u672c\u535a\u5ba2\u76f8\u5173\u5185\u5bb9\uff0c\u8fd9\u91cc\u91c7\u7528kernel\u91cd\u65b0\u7f16\u8bd1\uff0c\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u4ee5\u4e0b\u95ee\u9898\uff1a<\/p>\n<pre class=\"lang:default decode:true \" >\r\n&lt;i&gt; drivers\/block\/rbd.c error: bio_list may be used uninitialized in this function &lt;\/i&gt;<\/pre>\n<p>\u7ecf\u5206\u6790\u540e\uff0c\u7ed9\u5185\u6838\u8be5\u6587\u4ef6\u6253\u4e86\u4e2apatch<\/p>\n<pre class=\"lang:default decode:true \" >\r\n@@ -2171,9 +2171,9 @@ static int rbd_img_request_fill(struct r\r\nstruct rbd_obj_request *obj_request = NULL;\r\nstruct rbd_obj_request *next_obj_request;\r\nbool write_request = img_request_write_test(img_request);\r\n-\u00a0\u00a0 \u00a0struct bio *bio_list;\r\n+\u00a0\u00a0 \u00a0struct bio *bio_list = NULL;\r\nunsigned int bio_offset = 0;\r\n-\u00a0\u00a0 \u00a0struct page **pages;\r\n+\u00a0\u00a0 \u00a0struct page **pages = NULL;\r\nu64 img_offset;\r\nu64 resid;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>el\u5185\u68383.10.0-123.el7.x86_64&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[84],"tags":[180,37,111,92],"_links":{"self":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/618"}],"collection":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=618"}],"version-history":[{"count":2,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":647,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/618\/revisions\/647"}],"wp:attachment":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}