[PATCH V2 0/2] block: allow zone_mgmt_ops to bail out on SIGKILL

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

 



Hi Jens,

This is a small patch-series which allows zone-mgmt ops to handle
SIGKILL. This patch series formatted on the top of following patch:-
https://marc.info/?l=linux-block&m=157321402002207&w=2.

* Changes from V1:-

1. Export blk_should abort() to avoid code duplication.
2. Reuse blk_should_abort() and return -EINTR when zone-mgmt
   ops is interrupted when last submit_bio_wait() is successful.

In case you want me to add original patch posted by Tetsuo Honda,
I'll be happy to respin this series so we can have everything
in one patch-series.

Regards,
Chaitanya

In case someone is interested :-
Without this patch :-

# blkzone reset -o 0 -c 1000 /dev/nullb0 
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C

[  174.115065] null_blk: null_zone_mgmt 163 zoneid 993
[  174.125071] null_blk: null_zone_mgmt 163 zoneid 994
[  174.135076] null_blk: null_zone_mgmt 163 zoneid 995
[  174.145082] null_blk: null_zone_mgmt 163 zoneid 996
[  174.155087] null_blk: null_zone_mgmt 163 zoneid 997
[  174.165091] null_blk: null_zone_mgmt 163 zoneid 998
[  174.175096] null_blk: null_zone_mgmt 163 zoneid 999

With this patch :-
# blkzone reset -o 0 -c 1000 /dev/nullb0
^C

[  211.889379] null_blk: null_zone_mgmt 163 zoneid 191
[  211.899420] null_blk: null_zone_mgmt 163 zoneid 192
[  211.909424] null_blk: null_zone_mgmt 163 zoneid 193

Chaitanya Kulkarni (2):
  block: export blk_should_abort()
  block: allow zone_mgmt_ops to bail out on SIGKILL

 block/blk-lib.c   | 3 ++-
 block/blk-zoned.c | 5 ++++-
 block/blk.h       | 2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)

-- 
2.22.1




[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