diff options
author | Kanchan Joshi <joshi.k@samsung.com> | 2020-09-28 15:25:49 +0530 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-27 20:40:42 -0600 |
commit | 35bc10b2eafbb701064b94f283b77c54d3304842 (patch) | |
tree | 661c7d397dc63b891f6c934f3658244e1de5edf2 /block | |
parent | f255c19b3ab46d3cad3b1b2e1036f4c926cb1d0c (diff) | |
download | linux-stable-35bc10b2eafbb701064b94f283b77c54d3304842.tar.gz linux-stable-35bc10b2eafbb701064b94f283b77c54d3304842.tar.bz2 linux-stable-35bc10b2eafbb701064b94f283b77c54d3304842.zip |
null_blk: synchronization fix for zoned device
Parallel write,read,zone-mgmt operations accessing/altering zone state
and write-pointer may get into race. Avoid the situation by using a new
spinlock for zoned device.
Concurrent zone-appends (on a zone) returning same write-pointer issue
is also avoided using this lock.
Cc: stable@vger.kernel.org
Fixes: e0489ed5daeb ("null_blk: Support REQ_OP_ZONE_APPEND")
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions