Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1464456 > unrolled thread
| Started by | Johannes Thumshirn <jthumshirn@suse.de> |
|---|---|
| First post | 2016-08-17 11:50 +0200 |
| Last post | 2016-08-24 09:50 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached Johannes Thumshirn <jthumshirn@suse.de> - 2016-08-17 11:50 +0200
Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached James Bottomley <jejb@linux.vnet.ibm.com> - 2016-08-18 21:30 +0200
Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached Johannes Thumshirn <jthumshirn@suse.de> - 2016-08-19 09:00 +0200
Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached James Bottomley <jejb@linux.vnet.ibm.com> - 2016-08-19 03:10 +0200
Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached kbuild test robot <lkp@intel.com> - 2016-08-22 11:00 +0200
Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached Johannes Thumshirn <jthumshirn@suse.de> - 2016-08-24 09:50 +0200
| From | Johannes Thumshirn <jthumshirn@suse.de> |
|---|---|
| Date | 2016-08-17 11:50 +0200 |
| Subject | [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached |
| Message-ID | <s75DY-7DZ-19@gated-at.bofh.it> |
Use scsi_is_sas_rphy() instead of is_sas_attached() to decide whether
we should obtain the SAS address from a scsi device or not. This will
prevent us from tripping on the BUG_ON() in sas_sdev_to_rdev() if the
rphy isn't attached to the SAS transport class, like it is with hpsa's
logical devices.
Fixes: 3f8d6f2a0 ('ses: fix discovery of SATA devices in SAS enclosures')
Cc: stable@vger.kernel.org # v4.5+
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
---
drivers/scsi/ses.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c
index 53ef1cb6..1d82053 100644
--- a/drivers/scsi/ses.c
+++ b/drivers/scsi/ses.c
@@ -587,7 +587,7 @@ static void ses_match_to_enclosure(struct enclosure_device *edev,
ses_enclosure_data_process(edev, to_scsi_device(edev->edev.parent), 0);
- if (is_sas_attached(sdev))
+ if (scsi_is_sas_rphy(&sdev->sdev_gendev))
efd.addr = sas_get_address(sdev);
if (efd.addr) {
--
1.8.5.6
[toc] | [next] | [standalone]
| From | James Bottomley <jejb@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-08-18 21:30 +0200 |
| Subject | Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached |
| Message-ID | <s7BaN-3Ud-7@gated-at.bofh.it> |
| In reply to | #1464456 |
And please fix your scripts or just use the standard ones: Cc: stable@vger.kernel.org, #@suse.de, v4.5+@suse.de, I'm tired of getting two bounces every time I reply to this thread. James
[toc] | [prev] | [next] | [standalone]
| From | Johannes Thumshirn <jthumshirn@suse.de> |
|---|---|
| Date | 2016-08-19 09:00 +0200 |
| Subject | Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached |
| Message-ID | <s7LWy-2b5-21@gated-at.bofh.it> |
| In reply to | #1465656 |
On Thu, Aug 18, 2016 at 09:08:42AM -0700, James Bottomley wrote: > And please fix your scripts or just use the standard ones: Hmmm, I'm not using a script at all but pure git send-email. I'll have a look into it. > > Cc: stable@vger.kernel.org, #@suse.de, v4.5+@suse.de, > > I'm tired of getting two bounces every time I reply to this thread. > > James > -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
[toc] | [prev] | [next] | [standalone]
| From | James Bottomley <jejb@linux.vnet.ibm.com> |
|---|---|
| Date | 2016-08-19 03:10 +0200 |
| Subject | Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached |
| Message-ID | <s7BaN-3Ud-9@gated-at.bofh.it> |
| In reply to | #1464456 |
On Wed, 2016-08-17 at 11:46 +0200, Johannes Thumshirn wrote:
> Use scsi_is_sas_rphy() instead of is_sas_attached() to decide whether
> we should obtain the SAS address from a scsi device or not. This will
> prevent us from tripping on the BUG_ON() in sas_sdev_to_rdev() if the
> rphy isn't attached to the SAS transport class, like it is with
> hpsa's logical devices.
For the entire series:
Reviewed-by: James E.J. Bottomley <jejb@linux.vnet.ibm.com>
> Fixes: 3f8d6f2a0 ('ses: fix discovery of SATA devices in SAS
> enclosures')
> Cc: stable@vger.kernel.org # v4.5+
Except that we can't tag this for stable because without 1/3 it will
induce a compile failure within stable. This means you're going to
have to do the stable process manually and submit both patches to
stable and explain the dependency, once they're upstream.
James
[toc] | [prev] | [next] | [standalone]
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Date | 2016-08-22 11:00 +0200 |
| Subject | Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached |
| Message-ID | <s8Tfj-42v-15@gated-at.bofh.it> |
| In reply to | #1464456 |
[Multipart message — attachments visible in raw view] — view raw
Hi Johannes,
[auto build test ERROR on scsi/for-next]
[also build test ERROR on v4.8-rc3]
[cannot apply to next-20160822]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]
url: https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/Fix-panic-when-a-SES-device-is-attached-to-a-hpsa-logical-volume/20160815-231901
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: x86_64-randconfig-n0-08182202 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/built-in.o: In function `ses_match_to_enclosure':
>> ses.c:(.text+0x548dae): undefined reference to `scsi_is_sas_rphy'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[toc] | [prev] | [next] | [standalone]
| From | Johannes Thumshirn <jthumshirn@suse.de> |
|---|---|
| Date | 2016-08-24 09:50 +0200 |
| Subject | Re: [PATCH v4 2/3] ses: use scsi_is_sas_rphy instead of is_sas_attached |
| Message-ID | <s9B6G-7zt-39@gated-at.bofh.it> |
| In reply to | #1467486 |
On Mon, Aug 22, 2016 at 04:57:39PM +0800, kbuild test robot wrote: > Hi Johannes, > > [auto build test ERROR on scsi/for-next] > [also build test ERROR on v4.8-rc3] > [cannot apply to next-20160822] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > [Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] > [Check https://git-scm.com/docs/git-format-patch for more information] > > url: https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/Fix-panic-when-a-SES-device-is-attached-to-a-hpsa-logical-volume/20160815-231901 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next > config: x86_64-randconfig-n0-08182202 (attached as .config) > compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All errors (new ones prefixed by >>): > > drivers/built-in.o: In function `ses_match_to_enclosure': > >> ses.c:(.text+0x548dae): undefined reference to `scsi_is_sas_rphy' Sorry I was not able to reproduce this using the provided config (neither with James' tree nor Martin's). Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web