All of lore.kernel.org
 help / color / mirror / Atom feed
* Why don't return -EOPNOTSUPP?
@ 2016-02-02 11:57 jiangyiwen
  2016-02-02 13:58 ` Lukáš Czerner
  0 siblings, 1 reply; 3+ messages in thread
From: jiangyiwen @ 2016-02-02 11:57 UTC (permalink / raw)
  To: lczerner; +Cc: dm-devel, Qijiang (Joseph, Euler), xuejiufei

Hi Lukas,
I have a question about commit 8af1954d172a("blkdev: Do not return
-EOPNOTSUPP if discard is supported"). That is we issue a
WRITE SAME request to device and return failed with EOPNOTSUPP,
but blkdev_issue_write_same ignore this error and return
success to caller. In this way, this will cause an inconsistent state
between upper layer and bottom layer.

I don't know why don't return EOPNOTSUPP if part of devices support
discard, because I think that blkdev_issue_discard should return
EOPNOTSUPP to caller even if some of devices support discard.

Thanks,
Yiwen Jiang.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-03  4:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02 11:57 Why don't return -EOPNOTSUPP? jiangyiwen
2016-02-02 13:58 ` Lukáš Czerner
2016-02-03  4:03   ` jiangyiwen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.