]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: synchronization fix for zoned device
authorKanchan Joshi <joshi.k@samsung.com>
Mon, 28 Sep 2020 09:55:49 +0000 (15:25 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Oct 2020 02:40:42 +0000 (20:40 -0600)
commitd89a48a29765f322082b6f49404549199d37ca27
tree661c7d397dc63b891f6c934f3658244e1de5edf2
parentb819a65a13b4b2e48bdf850b687cf90f817fca68
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: a8336e35013e ("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>
drivers/block/null_blk.h
drivers/block/null_blk_zoned.c