lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120525074813.21933.91876.stgit@dwillia2-linux.jf.intel.com>
Date:	Fri, 25 May 2012 00:50:22 -0700
From:	Dan Williams <dan.j.williams@...el.com>
To:	mroos@...ux.ee
Cc:	linux-kernel@...r.kernel.org, JBottomley@...allels.com,
	linux-scsi@...r.kernel.org
Subject: [RFT PATCH 0/4] fix / cleanup async scsi scanning

Commit a7a20d10 "[SCSI] sd: limit the scope of the async probe domain"
introduces a boot regression by moving sd probe work off of the global
async queue.  Using a local async domain hides the probe work from being
synchronized by wait_for_device_probe()->async_synchronize_full().

Fix this by teaching async_synchronize_full() to flush all async work
regardless of domain, and take the opportunity to convert scsi scanning
to async_schedule().  This enables wait_for_device_probe() to flush scsi
scanning work.

Lightly boot tested, Meelis does this fix your regression?

Thanks for your help.

--
Dan

---

Dan Williams (4):
      async: introduce 'async_domain' type
      async: make async_synchronize_full() flush all work regardless of domain
      scsi: queue async scan work to an async_schedule domain
      scsi: cleanup usages of scsi_complete_async_scans


 drivers/regulator/core.c      |    2 +-
 drivers/scsi/libsas/sas_ata.c |    2 +-
 drivers/scsi/scsi.c           |    3 ++-
 drivers/scsi/scsi_priv.h      |    3 ++-
 drivers/scsi/scsi_scan.c      |   24 ++++++------------------
 drivers/scsi/scsi_wait_scan.c |   15 +++++----------
 include/linux/async.h         |   20 ++++++++++++++++----
 include/scsi/scsi_scan.h      |   11 -----------
 kernel/async.c                |   36 ++++++++++++++++++++----------------
 kernel/power/hibernate.c      |    8 --------
 kernel/power/user.c           |    2 --
 11 files changed, 53 insertions(+), 73 deletions(-)
 delete mode 100644 include/scsi/scsi_scan.h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ