Linux Kernel Mailing List | 1 Oct 04:59 2006

[PATCH] SCSI: fix request flag-related build breakage

commit 1bdfd554be94def718323659173517c5d4a69d25
tree 706790ffc4edfe5e113edbff46f3618299423f80
parent cb5d9e0948122dd8b808550574d95bd60674ba3b
author Jeff Garzik <jeff <at> garzik.org> 1159666102 -0400
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159670023 -0700

[PATCH] SCSI: fix request flag-related build breakage

The ->flags in struct request was split into two variables, in a recent
changeset.  The merge of this change forgot to update SCSI's libsas,
probably because libsas was a very recent merge.

Signed-off-by: Jeff Garzik <jeff <at> garzik.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 drivers/scsi/libsas/sas_scsi_host.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c
index 7f9e89b..e46e793 100644
--- a/drivers/scsi/libsas/sas_scsi_host.c
+++ b/drivers/scsi/libsas/sas_scsi_host.c
 <at>  <at>  -126,7 +126,7  <at>  <at>  static enum task_attribute sas_scsi_get_
 	enum task_attribute ta = TASK_ATTR_SIMPLE;
 	if (cmd->request && blk_rq_tagged(cmd->request)) {
 		if (cmd->device->ordered_tags &&
-		    (cmd->request->flags & REQ_HARDBARRIER))
+		    (cmd->request->cmd_flags & REQ_HARDBARRIER))
 			ta = TASK_ATTR_HOQ;
 	}
(Continue reading)

Linux Kernel Mailing List | 1 Oct 04:59 2006

[PATCH] scsi: device_reprobe() can fail

commit cb5d9e0948122dd8b808550574d95bd60674ba3b
tree f10c819fb1ec99df7c1b71aadff9bcae7591660e
parent cfae35804bcb909225d6f4eb5bd29e25971614d8
author Andrew Morton <akpm <at> osdl.org> 1159665824 -0400
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159670023 -0700

[PATCH] scsi: device_reprobe() can fail

device_reprobe() should return an error code.  When it does so,
scsi_device_reprobe() should propagate it back.

Acked-by: Jeff Garzik <jeff <at> garzik.org>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: James Bottomley <James.Bottomley <at> SteelEye.com>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 include/scsi/scsi_device.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 895d212..b401c82 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
 <at>  <at>  -298,9 +298,9  <at>  <at>  extern int scsi_execute_async(struct scs
 			      void (*done)(void *, char *, int, int),
 			      gfp_t gfp);

-static inline void scsi_device_reprobe(struct scsi_device *sdev)
+static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev)
 {
(Continue reading)

Linux Kernel Mailing List | 1 Oct 09:59 2006

[PATCH] list_del-debug fix

commit ab8e92efcf3f7972f30033cad75f180aef4f3abc
tree 3205746553d1981de43cdaa07739f910fd25ed2d
parent 1bdfd554be94def718323659173517c5d4a69d25
author Andrew Morton <akpm <at> osdl.org> 1159684019 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688357 -0700

[PATCH] list_del-debug fix

These two BUG_ON()s are redundant and undesired: we're checking for this
condition further on in the function, only better.

Cc: Dave Jones <davej <at> codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 lib/list_debug.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/list_debug.c b/lib/list_debug.c
index e80d27c..7ba9d82 100644
--- a/lib/list_debug.c
+++ b/lib/list_debug.c
 <at>  <at>  -59,9 +59,6  <at>  <at>  EXPORT_SYMBOL(list_add);
  */
 void list_del(struct list_head *entry)
 {
-	BUG_ON(entry->prev->next != entry);
-	BUG_ON(entry->next->prev != entry);
-
 	if (unlikely(entry->prev->next != entry)) {
(Continue reading)

Linux Kernel Mailing List | 1 Oct 09:59 2006

[PATCH] PCI quirks update

commit 236561e5df009f79f1939e3ca269b9b6f18092f5
tree 86e9f0986667c4238983a6520b0f3f6aee622062
parent 3fcd03e07008ec0f667dfb7626171165699ea5c2
author Alan Cox <alan <at> lxorguk.ukuu.org.uk> 1159684023 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688357 -0700

[PATCH] PCI quirks update

This fixes two things

Firstly someone mistakenly used "errata" for the singular.  This causes
Dave Woodhouse to emit diagnostics whenever the string is read, and so
should be fixed.

Secondly the AMD AGP tunnel has an erratum which causes hangs if you try
and do direct PCI to AGP transfers in some cases.  We have a flag for
PCI/PCI failures but we need a different flag for this really as in this
case we don't want to stop PCI/PCI transfers using things like IOAT and the
new RAID offload work.

I'll post some updates to make proper use of the PCIAGP flag in the
media/video drivers to Mauro.

Signed-off-by: Alan Cox <alan <at> redhat.com>
Cc: David Woodhouse <dwmw2 <at> infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh <at> suse.de>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 drivers/pci/quirks.c |   17 +++++++++++++++--
(Continue reading)

Linux Kernel Mailing List | 1 Oct 09:59 2006

[PATCH] hot-add-mem x86_64: fixup externs

commit f28c5edc06ecd8068b38b7662ad19f4d20d741af
tree 4582acbf62b7a484b62b69e3f465cf4d069f7e2a
parent 236561e5df009f79f1939e3ca269b9b6f18092f5
author Keith Mannthey <kmannth <at> us.ibm.com> 1159684024 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688358 -0700

[PATCH] hot-add-mem x86_64: fixup externs

Fix up externs in memory_hotplug.c.  Cleanup.

Signed-off-by: Keith Mannthey <kmannth <at> us.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu <at> jp.fujitsu.com>
Cc: Andi Kleen <ak <at> muc.de>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 include/linux/memory_hotplug.h |    2 ++
 include/linux/mm.h             |    2 ++
 mm/memory_hotplug.c            |    4 ----
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h
index 218501c..7b54666 100644
--- a/include/linux/memory_hotplug.h
+++ b/include/linux/memory_hotplug.h
 <at>  <at>  -172,5 +172,7  <at>  <at>  static inline int __remove_pages(struct 
 extern int add_memory(int nid, u64 start, u64 size);
 extern int arch_add_memory(int nid, u64 start, u64 size);
 extern int remove_memory(u64 start, u64 size);
+extern int sparse_add_one_section(struct zone *zone, unsigned long start_pfn,
(Continue reading)

Linux Kernel Mailing List | 1 Oct 09:59 2006

[PATCH] NOMMU: don't try and give NULL to fput()

commit 3fcd03e07008ec0f667dfb7626171165699ea5c2
tree 311370abb953013b7ffa458b63b376706560061e
parent ab8e92efcf3f7972f30033cad75f180aef4f3abc
author Gavin Lambert <gavinl <at> compacsort.com> 1159684021 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688357 -0700

[PATCH] NOMMU: don't try and give NULL to fput()

Don't try and give NULL to fput() in the error handling in do_mmap_pgoff()
as it'll cause an oops.

Signed-off-by: David Howells <dhowells <at> redhat.com>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 mm/nommu.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mm/nommu.c b/mm/nommu.c
index 5645406..3650195 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
 <at>  <at>  -948,7 +948,8  <at>  <at>  #endif
 	up_write(&nommu_vma_sem);
 	kfree(vml);
 	if (vma) {
-		fput(vma->vm_file);
+		if (vma->vm_file)
+			fput(vma->vm_file);
 		kfree(vma);
(Continue reading)

Linux Kernel Mailing List | 1 Oct 09:59 2006

[PATCH] hot-add-mem x86_64: Kconfig changes

commit ec69acbb1191df671ff8e07c8e146619a5c53f70
tree 431aea50c8b614686543342c114ce36465b9dbc2
parent f28c5edc06ecd8068b38b7662ad19f4d20d741af
author Keith Mannthey <kmannth <at> us.ibm.com> 1159684025 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688358 -0700

[PATCH] hot-add-mem x86_64: Kconfig changes

Create Kconfig namespace for MEMORY_HOTPLUG_RESERVE and MEMORY_HOTPLUG_SPARSE.
 This is needed to create a disticiton between the 2 paths.  Selecting the
high level opiton of MEMORY_HOTPLUG will get you MEMORY_HOTPLUG_SPARSE if you
have sparsemem enabled or MEMORY_HOTPLUG_RESERVE if you are x86_64 with
discontig and ACPI numa support.

Signed-off-by: Keith Mannthey <kmannth <at> us.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu <at> jp.fujitsu.com>
Cc: Andi Kleen <ak <at> muc.de>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/x86_64/Kconfig |    4 ++++
 mm/Kconfig          |    7 ++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig
index 32ae137..b87a19f 100644
--- a/arch/x86_64/Kconfig
+++ b/arch/x86_64/Kconfig
 <at>  <at>  -367,6 +367,10  <at>  <at>  config ARCH_FLATMEM_ENABLE

(Continue reading)

Linux Kernel Mailing List | 1 Oct 09:59 2006

[PATCH] hot-add-mem x86_64: Enable SPARSEMEM in srat.c

commit 71efa8fdc55e70ec6687c897a30759f0a2c2ad7e
tree 93975fd0431f856f7285ad90a13cc4ea73f740d3
parent ec69acbb1191df671ff8e07c8e146619a5c53f70
author Keith Mannthey <kmannth <at> us.ibm.com> 1159684025 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688358 -0700

[PATCH] hot-add-mem x86_64: Enable SPARSEMEM in srat.c

Enable x86_64 srat.c to share code between both reserve and sparsemem based
add memory paths.  Both paths need the hot-add area node locality infomration
(nodes_add).  This code refactors the code path to allow this.

Signed-off-by: Keith Mannthey <kmannth <at> us.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu <at> jp.fujitsu.com>
Cc: Andi Kleen <ak <at> muc.de>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/x86_64/mm/srat.c |   51 ++++++++++++++++++++++++++++----------------------
 1 file changed, 29 insertions(+), 22 deletions(-)

diff --git a/arch/x86_64/mm/srat.c b/arch/x86_64/mm/srat.c
index f8c04d6..19396a2 100644
--- a/arch/x86_64/mm/srat.c
+++ b/arch/x86_64/mm/srat.c
 <at>  <at>  -23,12 +23,6  <at>  <at>  #include <asm/e820.h>

 int acpi_numa __initdata;

-#if (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \
(Continue reading)

Linux Kernel Mailing List | 1 Oct 10:00 2006

[PATCH] arch/i386/pci/mmconfig.c tweaks

commit be5b7a8987f23281b146f22b13e2079f448c69c7
tree 41227ddbc82b97095ae45d11b5071c7239868b9b
parent 45e0b78b0532f92c01e363dd4287617c5be4574f
author Andrew Morton <akpm <at> osdl.org> 1159684030 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688358 -0700

[PATCH] arch/i386/pci/mmconfig.c tweaks

- Add soothing comment

- uninline thrice-called function

Cc: OGAWA Hirofumi <hogawa <at> miraclelinux.com>
Cc: Andi Kleen <ak <at> suse.de>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/i386/pci/mmconfig.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/i386/pci/mmconfig.c b/arch/i386/pci/mmconfig.c
index 05be8db..d0c3da3 100644
--- a/arch/i386/pci/mmconfig.c
+++ b/arch/i386/pci/mmconfig.c
 <at>  <at>  -67,7 +67,10  <at>  <at>  static u32 get_base_addr(unsigned int se
 	return 0;
 }

-static inline void pci_exp_set_dev_base(unsigned int base, int bus, int devfn)
+/*
(Continue reading)

Linux Kernel Mailing List | 1 Oct 10:00 2006

[PATCH] hot-add-mem x86_64: use CONFIG_MEMORY_HOTPLUG_RESERVE

commit 45e0b78b0532f92c01e363dd4287617c5be4574f
tree 8c09edff4667535252b5c95efd68d397ae1283a5
parent 53947027ad90542ddb2bb746e3175827c270610a
author Keith Mannthey <kmannth <at> us.ibm.com> 1159684029 -0700
committer Linus Torvalds <torvalds <at> g5.osdl.org> 1159688358 -0700

[PATCH] hot-add-mem x86_64: use CONFIG_MEMORY_HOTPLUG_RESERVE

The api for hot-add memory already has a construct for finding nodes based on
an address, memory_add_physaddr_to_nid.  This patch allows the fucntion to do
something besides return 0.  It uses the nodes_add infomation to lookup to
node info for a hot add event.

Signed-off-by: Keith Mannthey <kmannth <at> us.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu <at> jp.fujitsu.com>
Cc: Andi Kleen <ak <at> muc.de>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/x86_64/mm/init.c |   17 ++++++++++----
 mm/memory_hotplug.c   |   60 +++++++++++++++++++++++++-------------------------
 2 files changed, 43 insertions(+), 34 deletions(-)

diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c
index 71ecbb3..19c7252 100644
--- a/arch/x86_64/mm/init.c
+++ b/arch/x86_64/mm/init.c
 <at>  <at>  -474,12 +474,12  <at>  <at>  int arch_add_memory(int nid, u64 start, 
 	unsigned long nr_pages = size >> PAGE_SHIFT;
 	int ret;
(Continue reading)


Gmane