OSDN Git Service

zonefs: fix IOCB_NOWAIT handling
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Feb 2020 14:37:23 +0000 (06:37 -0800)
committerDamien Le Moal <damien.lemoal@wdc.com>
Wed, 26 Feb 2020 07:57:35 +0000 (16:57 +0900)
commit7c69eb84d98a28c428f902318c20c53cf29c9084
tree674f4411f5b60f68a8604e9fbf7192ff286382e7
parent4c5fd3b791a06021084b42d5610400f846d206b5
zonefs: fix IOCB_NOWAIT handling

IOCB_NOWAIT can't just be ignored as it breaks applications expecting
it not to block.  Just refuse the operation as applications must handle
that (e.g. by falling back to a thread pool).

Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
fs/zonefs/super.c