[PATCH 0/2] zoned null_blk fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jens,

Here is a couple of fixes for nullblk for this cycle.

The first patch fixes tracing of zone condition in the case of a
REQ_OP_ZONE_RESET_ALL operation.

The second patch fixes a more serious problem introduced with the recent
modification for protecting zone information using a spinlock. A
spinlock cannot be used when memory backing is turned on as that results
in potential memory allocations with the lock held and IRQ disabled.
The fix changes the locking method to using a bit, with the spinlock
retained only for function local protection. This new locking was
extensively tested with xfstests/btrfs and zonefs tests runs.

Damien Le Moal (2):
  null_blk: Fix zone reset all tracing
  null_blk: Fix locking in zoned mode

 drivers/block/null_blk.h       |   3 +-
 drivers/block/null_blk_zoned.c | 113 +++++++++++++++++++++++++--------
 2 files changed, 89 insertions(+), 27 deletions(-)

-- 
2.26.2




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux