Three weeks, and this simple and obvious patch has had two positive reviews and no propagation. Who do I have to buy a Pint of Guinness for to get this moving upstream? ;-} Sincerely -- Mark Salyzyn -----Original Message----- From: dan.j.williams@xxxxxxxxx [mailto:dan.j.williams@xxxxxxxxx] On Behalf Of Dan Williams Sent: Wednesday, September 07, 2011 3:26 PM To: Mark Salyzyn Cc: linux-scsi@xxxxxxxxxxxxxxx; Luben Tuikov; Darrick J Wong; James Bottomley; Xiangliang Yu; Jack Wang Subject: Re: [PATCH] [SCSI]: libsas failure to revalidate domain for anything but the first expander child. . . . Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx> . . . Reviewed-by: Luben Tuikov <ltuikov@xxxxxxxxx> I don't mind this patch. ______________________________________________________________________ This email may contain privileged or confidential information, which should only be used for the purpose for which it was sent by Xyratex. No further rights or licenses are granted to use such information. If you are not the intended recipient of this message, please notify the sender by return and delete it. You may not use, copy, disclose or rely on the information contained in it. Internet email is susceptible to data corruption, interception and unauthorised amendment for which Xyratex does not accept liability. While we have taken reasonable precautions to ensure that this email is free of viruses, Xyratex does not accept liability for the presence of any computer viruses in this email, nor for any losses caused as a result of viruses. Xyratex Technology Limited (03134912), Registered in England & Wales, Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA. The Xyratex group of companies also includes, Xyratex Ltd, registered in Bermuda, Xyratex International Inc, registered in California, Xyratex (Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) Co Ltd registered in The People's Republic of China and Xyratex Japan Limited registered in Japan. ______________________________________________________________________
From e3569cf6e71f9435af8476c6729624cf32870326 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn <mark_salyzyn@xxxxxxxxxxxxxx> Date: Thu, 1 Sep 2011 06:11:17 -0700 Subject: [PATCH] libsas: failure to revalidate domain for anything but the first expander child In an enclosure model where there are chaining expanders to a large body of storage, it was discovered that libsas, responding to a broadcast event change, would only revalidate the domain of first child expander in the list. The issue is that the pointer value to the discovered source device was used to break out of the loop, rather than the content of the pointer. This still remains non-compliant as the revalidate domain code is supposed to loop through all child expanders, and not stop at the first one it finds that reports a change count. However, the design of this routine does not allow multiple device discoveries and that would be a more complicated set of patches reserved for another day. We are fixing the glaring bug rather than refactoring the code. Cc: Luben Tuikov <tuikov@xxxxxxxxx> Cc: Darrick J Wong <djwong@xxxxxxxxxx> Cc: James Bottomley <jbottomley@xxxxxxxxxxxxx> Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx> Signed-off-by: Mark Salyzyn <msalyzyn@xxxxxxxxxxxxxx> --- drivers/scsi/libsas/sas_expander.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 874e29d..7d68517 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c @@ -1718,7 +1718,7 @@ static int sas_find_bcast_dev(struct domain_device *dev, list_for_each_entry(ch, &ex->children, siblings) { if (ch->dev_type == EDGE_DEV || ch->dev_type == FANOUT_DEV) { res = sas_find_bcast_dev(ch, src_dev); - if (src_dev) + if (*src_dev) return res; } } -- 1.7.6