All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Rework handling of scsi_device.vpd_pg8[03]
@ 2017-08-29 15:50 Bart Van Assche
  2017-08-29 15:50 ` [PATCH v4 1/3] rcu: Introduce rcu_swap_protected() Bart Van Assche
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Bart Van Assche @ 2017-08-29 15:50 UTC (permalink / raw)
  To: Martin K . Petersen, James E . J . Bottomley
  Cc: linux-scsi, Paul E . McKenney, Bart Van Assche

Hello Martin,

The conclusion of a recent discussion about the handling of SCSI device VPD
data is that the code should be reworked such that that data is freed through
kfree_rcu() instead of kfree(). The three patches in this series realize this
and also simplify the VPD code. Please consider these patches for kernel
v4.14.

Thanks,

Bart.

Changes between v3 and v4:
- Reworked patch 1/3 as requested by Paul E. McKenney.
- Added Acked-by / Reviewed-by tags.

Changes between v2 and v3:
- Added a third patch that introduces rcu_swap_protected().
- Introduced scsi_update_vpd_page().
- Skip VPD buffer updating if querying VPD data fails.
- Fix a race condition in the VPD sysfs show method.

Changes between v1 and v2:
- Split the VPD rework into two patches.
- Introduced struct scsi_vpd and scsi_get_vpd_buf().

Bart Van Assche (3):
  rcu: Introduce rcu_swap_protected()
  Rework the code for caching Vital Product Data (VPD)
  Rework handling of scsi_device.vpd_pg8[03]

 drivers/scsi/scsi.c        | 140 +++++++++++++++++++--------------------------
 drivers/scsi/scsi_lib.c    |  16 +++---
 drivers/scsi/scsi_sysfs.c  |  29 +++++++---
 include/linux/rcupdate.h   |  16 ++++++
 include/scsi/scsi_device.h |  18 ++++--
 5 files changed, 118 insertions(+), 101 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-08-31 13:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-29 15:50 [PATCH v4 0/3] Rework handling of scsi_device.vpd_pg8[03] Bart Van Assche
2017-08-29 15:50 ` [PATCH v4 1/3] rcu: Introduce rcu_swap_protected() Bart Van Assche
2017-08-29 15:50 ` [PATCH v4 2/3] Rework the code for caching Vital Product Data (VPD) Bart Van Assche
2017-08-30  0:04   ` Seymour, Shane M
2017-08-31 13:34   ` Christoph Hellwig
2017-08-29 15:50 ` [PATCH v4 3/3] Rework handling of scsi_device.vpd_pg8[03] Bart Van Assche
2017-08-30  0:07   ` Seymour, Shane M
2017-08-31 13:35   ` Christoph Hellwig
2017-08-30  1:42 ` [PATCH v4 0/3] " Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.