]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7e55f6352f499f095f16d188a60b99dfcbbed7c
tree674f4411f5b60f68a8604e9fbf7192ff286382e7
parent41a24c0a0691913dd436ed996fe4dad7554c45a8
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: 9036f572c6ce ("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