Skip to contentSkip to conversation

staging/lustre: add BLOCK depends in Kconfig

PATCH In review Xiong Zhou 3 participants 6 messages Jul 25, 2013 – Jul 26, 2013 Staging

lore
Share & tools
lore

Xiong Zhou

author
#0 lore raw

PATCH 1/1 staging/lustre: add BLOCK depends in Kconfig

From: Xiong Zhou <[email protected]>

Add BLOCK depends in Kconfig for LUSTRE to fix this:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117:2:
error: implicit declaration of function ‘unregister_blkdev’

---
 drivers/staging/lustre/lustre/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/Kconfig +1 -1
index 9ae7fa8..0b45de0 100644
@@ -1,6 +1,6 @@
 config LUSTRE_FS
 	tristate "Lustre file system client support"
-	depends on STAGING && INET && m
+	depends on STAGING && INET && BLOCK && m
 	select LNET
 	select CRYPTO
 	select CRYPTO_CRC32
#1 lore raw
Quoted 14 lines · Xiong Zhou

Add BLOCK depends in Kconfig for LUSTRE to fix this:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117:2:
error: implicit declaration of function ‘unregister_blkdev’

---
 drivers/staging/lustre/lustre/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/Kconfig +0 -0
index 9ae7fa8..0b45de0 100644

drivers/staging/lustre/lustre/Kconfig line 3

Quoted 4 lines
drivers/staging/lustre/lustre/Kconfig +1 -1
@@ -1,6 +1,6 @@
 config LUSTRE_FS
        tristate "Lustre file system client support"
-       depends on STAGING && INET && m
+       depends on STAGING && INET && BLOCK && m

Everything below drivers/staging/lustre/Kconfig is only sourced if STAGING is set. You can drop the dependency on STAGING.

drivers/staging/lustre/lustre/Kconfig line 6

Quoted 3 lines
drivers/staging/lustre/lustre/Kconfig +0 -0
        select LNET
        select CRYPTO
        select CRYPTO_CRC32

Paul Bolle

author
#2 lore raw

2013/7/25 Paul Bolle <[email protected]>:

Quoted 10 lines · Xiong Zhou
Quoted 9 lines

Add BLOCK depends in Kconfig for LUSTRE to fix this:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117:2:
error: implicit declaration of function ‘unregister_blkdev’

---
 drivers/staging/lustre/lustre/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

drivers/staging/lustre/lustre/Kconfig line 3

Quoted 9 lines
drivers/staging/lustre/lustre/Kconfig +1 -1
index 9ae7fa8..0b45de0 100644
@@ -1,6 +1,6 @@
 config LUSTRE_FS
        tristate "Lustre file system client support"
-       depends on STAGING && INET && m
+       depends on STAGING && INET && BLOCK && m

Everything below drivers/staging/lustre/Kconfig is only sourced if STAGING is set. You can drop the dependency on STAGING.

Yes, it is. Thanks~

Quoted 7 lines

drivers/staging/lustre/lustre/Kconfig line 6

Quoted 3 lines
drivers/staging/lustre/lustre/Kconfig +0 -0
        select LNET
        select CRYPTO
        select CRYPTO_CRC32

Paul Bolle

#3 lore raw
In reply to Xiong Zhou
Quoted 22 lines · Xiong Zhou

From: Xiong Zhou <[email protected]>

Add BLOCK depends in Kconfig for LUSTRE to fix this:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117:2 :
error: implicit declaration of function ʽunregister_blkdevʼ

---
drivers/staging/lustre/lustre/Kconfig | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/Kconfig +0 -0
index 9ae7fa8..0b45de0 100644
@@ -1,6 +1,6 @@

config LUSTRE_FS
tristate "Lustre file system client support"

drivers/staging/lustre/lustre/Kconfig +1 -1
-	depends on STAGING && INET && m
+	depends on STAGING && INET && BLOCK && m
Quoted 3 lines

select LNET
select CRYPTO
select CRYPTO_CRC32

The Lustre client does not need a block device - it is a network filesystem.
The one piece of code that is relevant here relates to a Lustre-optimized "loop" device that bypasses the VFS, data copying, and DLM locking for use by swap and such. It would be better instead to make that code conditional and add a new CONFIG_LUSTRE_LLOOP or similar, and only make that part dependent
on BLOCK.

Cheers, Andreas

Signature · 7 lines
Andreas Dilger

Lustre Software Architect
Intel High Performance Data Division


���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
author
#4 lore raw

2013/7/26 Dilger, Andreas <[email protected]>:

Quoted 37 lines · Xiong Zhou
Quoted 21 lines

From: Xiong Zhou <[email protected]>

Add BLOCK depends in Kconfig for LUSTRE to fix this:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117:2 :
error: implicit declaration of function ʽunregister_blkdevʼ

---
drivers/staging/lustre/lustre/Kconfig | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/Kconfig +0 -0
index 9ae7fa8..0b45de0 100644
@@ -1,6 +1,6 @@

config LUSTRE_FS
tristate "Lustre file system client support"

drivers/staging/lustre/lustre/Kconfig line 6

Quoted 5 lines
drivers/staging/lustre/lustre/Kconfig +1 -1
-      depends on STAGING && INET && m
+      depends on STAGING && INET && BLOCK && m
      select LNET
      select CRYPTO
      select CRYPTO_CRC32

The Lustre client does not need a block device - it is a network filesystem.
The one piece of code that is relevant here relates to a Lustre-optimized "loop" device that bypasses the VFS, data copying, and DLM locking for use by swap and such. It would be better instead to make that code conditional and add a new CONFIG_LUSTRE_LLOOP or similar, and only make that part dependent
on BLOCK.

Quoted 4 lines

Cheers, Andreas
--
Andreas Dilger

This makes sence. I noticed that this patch has gone into Greg's tree, so a coming patch
based on this patch is cool?

Quoted 4 lines

Lustre Software Architect
Intel High Performance Data Division

#5 lore raw
Quoted 41 lines · Xiong Zhou

2013/7/26 Dilger, Andreas <[email protected]>:

Quoted 31 lines · Xiong Zhou
Quoted 22 lines

From: Xiong Zhou <[email protected]>

Add BLOCK depends in Kconfig for LUSTRE to fix this:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117 :2
:
error: implicit declaration of function ʽunregister_blkdevʼ

---
drivers/staging/lustre/lustre/Kconfig | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/Kconfig +0 -0
index 9ae7fa8..0b45de0 100644
@@ -1,6 +1,6 @@

config LUSTRE_FS
tristate "Lustre file system client support"

drivers/staging/lustre/lustre/Kconfig line 6

Quoted 5 lines
drivers/staging/lustre/lustre/Kconfig +1 -1
-      depends on STAGING && INET && m
+      depends on STAGING && INET && BLOCK && m
      select LNET
      select CRYPTO
      select CRYPTO_CRC32

The Lustre client does not need a block device - it is a network filesystem.

Quoted 8 lines

The one piece of code that is relevant here relates to a Lustre-optimized
"loop" device that bypasses the VFS, data copying, and DLM locking for use
by swap and such. It would be better instead to make that code conditional
and add a new CONFIG_LUSTRE_LLOOP or similar, and only make that part dependent on BLOCK.

Quoted 2 lines

This makes sence. I noticed that this patch has gone into Greg's tree, so a coming patch based on this patch is cool?

That would be fine, thanks.

Cheers, Andreas

Signature · 7 lines
Andreas Dilger

Lustre Software Architect
Intel High Performance Data Division


���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�